Skip to content

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

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

import { assertJobSchedule } from '@gj-kit/nest-operations-jobs/core';
/**
* Throws `ERR_JOB_SCHEDULE_INVALID` for a malformed cron shape or unknown IANA
* zone. Only the shape is checked — semantic parsing belongs to the scheduler;
* what this catches is writing `"0 9 * *"` when `"0 9 * * *"` was meant.
*/
declare function assertJobSchedule(schedule: JobSchedule, jobKey: string): void;

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