Optional Readonlydata?: unknownOptional payload handed to the handler.
Readonlyexpression: string5-field cron expression (UTC). Required on the cron arm.
Readonlyhandler: SchedulerJobHandlerInvoked on each fire, exactly as the imperative cron() accepts.
Readonlyname: stringUnique job name (the cron() name argument).
Optional Readonlyretry?: RetryOptionsOptional retry configuration, exactly as the imperative cron() accepts.
Readonlytrigger: "cron"Discriminator: this job fires on a 5-field cron expression (UTC).
Optional Readonlydata?: unknownOptional payload handed to the handler.
Readonlyhandler: SchedulerJobHandlerInvoked on each fire, exactly as the imperative every() accepts.
ReadonlyintervalMs: numberInterval in milliseconds. Required on the every arm.
Readonlyname: stringUnique job name (the every() name argument).
Optional Readonlyretry?: RetryOptionsOptional retry configuration, exactly as the imperative every() accepts.
Readonlytrigger: "every"Discriminator: this job fires on a fixed interval.
Optional Readonlydata?: unknownOptional payload handed to the handler.
ReadonlydelayMs: numberDelay in milliseconds. Required on the delay arm.
Readonlyhandler: SchedulerJobHandlerInvoked when the delay expires, exactly as the imperative delay() accepts.
Readonlyname: stringUnique job name (the delay() name argument).
Optional Readonlyretry?: RetryOptionsOptional retry configuration, exactly as the imperative delay() accepts.
Readonlytrigger: "delay"Discriminator: this job fires once, after a delay.
The declarative form of one scheduler job registration — the entry an application writes instead of calling
cron()/every()/delay()imperatively afterstart().A union discriminated on
trigger: each arm carries exactly the field its scheduling strategy needs (expressionforcron,intervalMsforevery,delayMsfordelay), so a cron entry without anexpression— the one mistake that would otherwise produce a job that silently never fires — is a COMPILE error rather than a runtime one.