Hierarchy

  • CronClient

Constructors

Properties

Methods

Constructors

  • Parameters

    • timeZone: string = defTimeZone
    • debug: boolean = false

    Returns CronClient

Properties

crons: Map<string, CronJob<null, null>> = ...
debug: boolean = false
timeZone: string = defTimeZone

Methods

  • Parameters

    • Rest ...args: unknown[]

    Returns void

  • Parameters

    • options: {
          name: string;
          onStartup?: boolean;
          run: (() => unknown);
          time: string | Date | DateTime<boolean>;
          timeZone?: string;
      }
      • name: string
      • Optional onStartup?: boolean
      • run: (() => unknown)
          • (): unknown
          • Returns unknown

      • time: string | Date | DateTime<boolean>
      • Optional timeZone?: string

    Returns CronClient

  • Parameters

    • name: string

    Returns null | CronJob<null, null>

  • Returns {
        job: CronJob<null, null>;
        name: string;
    }[]

  • Returns boolean

Generated using TypeDoc