UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

20 lines (19 loc) 937 B
import { type TaskOptions } from 'node-cron'; import { type LogService } from 'common-services'; import { type WhookCronsDefinitionsService } from './CRONS_DEFINITIONS.js'; import { type WhookCronsHandlersService } from './CRONS_HANDLERS.js'; import { type WhookMain } from '../types/base.js'; export type WhookCronRunnerService = void; export type WhookCronRunnerOptions = Required<Pick<TaskOptions, 'timezone'>>; export type WhookCronRunnerConfig = { CRON_RUNNER_OPTIONS?: WhookCronRunnerOptions; }; export type WhookCronRunnerDependencies = WhookCronRunnerConfig & { APP_ENV: WhookMain['AppEnv']; CRONS_HANDLERS: WhookCronsHandlersService; CRONS_DEFINITIONS: WhookCronsDefinitionsService; log: LogService; }; export declare const DEFAULT_CRON_RUNNER_OPTIONS: WhookCronRunnerOptions; declare const _default: import("knifecycle").ProviderInitializer<WhookCronRunnerDependencies, undefined>; export default _default;