modules/cron.ts

strapi · packages/core/types/src/modules/cron.ts · typescript · MIT
automation

cron.ts from strapi/strapi

// Source: https://github.com/strapi/strapi | License: MIT | Copyright 2015-present Strapi Solutions SAS
// Provided via justclaw.it.com; keep this notice with the code.
import type { Strapi } from '../core';

/**
 * node-schedule RecurrenceSpecObjLit / RecurrenceRule-shaped objects
 * (`month` is 0–11).
 */
export interface RecurrenceRange {
  start: number;
  end: number;
  step?: number;
}

export type RecurrenceSegment =
  number | string | RecurrenceRange | Array<number | string | RecurrenceRange>;
export type CronDate = Date | number | string;

export interface RecurrenceSpecObjLit {
  date?: RecurrenceSegment | null;
  dayOfWeek?: RecurrenceSegment | null;
  hour?: RecurrenceSegment | null;
  minute?: RecurrenceSegment | null;
  month?: RecurrenceSegment | null;
  second?: Recurrenc

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key