Type alias CronDeps

CronDeps: {
    log: SimpleLoggerInterface;
    svc?: {
        whenReady: Promise<unknown>;
        onShutdown: ((task) => void);
    };
}

The dependencies that the cron weenie function requires

Type declaration

  • log: SimpleLoggerInterface
  • Optional svc?: {
        whenReady: Promise<unknown>;
        onShutdown: ((task) => void);
    }
    • whenReady: Promise<unknown>
    • onShutdown: ((task) => void)
        • (task): void
        • Parameters

          • task: (() => Promise<void>)
              • (): Promise<void>
              • Returns Promise<void>

          Returns void

Generated using TypeDoc