Skip to content

JobInputValidator — @gj-kit/nest-operations-jobs

A public interface from @gj-kit/nest-operations-jobs/core. The signature below is taken directly from the 0.1.1 release declaration.

import { JobInputValidator } from '@gj-kit/nest-operations-jobs/core';
/**
* Structural input validator. A Zod schema satisfies this shape as-is
* (`ZodType.parse(value: unknown): Output`), and so do valibot wrappers,
* ArkType morphs and hand-written functions. The library never imports a
* validation library: it only calls `parse` and treats any throw as invalid input.
*/
interface JobInputValidator<Input> {
parse(value: unknown): Input;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-operations-jobs
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub