3.0.11 • Published 2 years ago

@types/node-cron v3.0.11

Weekly downloads
33,948
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/node-cron

Summary

This package contains type definitions for node-cron (https://github.com/node-cron/node-cron).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cron.

index.d.ts

// Type definitions for node-cron 3.0
// Project: https://github.com/node-cron/node-cron, https://github.com/merencia/node-cron
// Definitions by: morsic <https://github.com/maximelkin>,
//                 burtek <https://github.com/burtek>,
//                 Richard Honor <https://github.com/RMHonor>
//                 Ata Berk YILMAZ <https://github.com/ataberkylmz>
//                 Alex Seidmann <https://github.com/aseidma>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import EventEmitter = require('events');

export function schedule(cronExpression: string, func: (now: Date) => void, options?: ScheduleOptions): ScheduledTask;

export function validate(cronExpression: string): boolean;

export function getTasks(): ScheduledTask[];

export interface ScheduledTask extends EventEmitter {
    start: () => this;
    stop: () => this;
}

export interface ScheduleOptions {
    /**
     * A boolean to set if the created task is scheduled.
     *
     * Defaults to `true`
     */
    scheduled?: boolean | undefined;
    /**
     * The timezone that is used for job scheduling
     */
    timezone?: string;
    /**
     * Specifies whether to recover missed executions instead of skipping them.
     *
     * Defaults to `false`
     */
    recoverMissedExecutions?: boolean;
}

Additional Details

  • Last updated: Sun, 02 Jan 2022 18:01:29 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by morsic, burtek, Richard Honor, Ata Berk YILMAZ, and Alex Seidmann.

american-golf-kioskdomeniere@everything-registry/sub-chunk-953@ghostebony/schedulerweb-scraper-helpersxioosuper-sessionsupertokens-node-mongo-ref-jwtsupertokens-node-mysql-ref-jwtsupertokens-node-postgres-ref-jwtstarfield-ts-modloadervendure-cron-plugin@donutteam/cron-job-manager@cortexapps/backstage-backend-plugin@dotmind/node-mongo-dumpjs-swrm-clientjs-swrm-client-betajs-swrm-client-testjs-swrm-client-videojshaikuiobroker.virtualpowermeterkyggsonic-shadowturnip-bot@addo/common-api@_koi/logs@digieappisgs/commonzeroworx@fasterjs/core@greeneyesai/api-utils@eventicle/eventiclejs@kuuki/gios-events@nicohery/homebridge-myfoxhc2@mineralts/core-preview@screenpipe/js@oneuptime/infrastructure-agent@orchard-insights/crewmongodb-backup-cloudnamirasoft-nodeowservableomnxscheduler-tsscreenpipe-test-sdkrsjs-servernode-mongo-dumpnodemailer-sequelize-queuepoint3-typescript-sagareq-meta-middlewarereshufflereshuffle-quickbooks-connectorskedulareactive-stack-js-backendslack-friendsguanacohomebridge-myfoxhc2installer-test-malware-client-2iobroker.timecounterm-node-loggerlogger_tenkolaris-botkrawlr@xioo/app@tsdiapi/cron@techgreedy/singularity@yiliang114/heartbeat@zayojs/core@stoked-cenv/cdk@stoked-cenv/cli@stoked-cenv/lib@stoked-cenv/uialexaalb-build-toolsafip-managementaction-tracker-dbayrtonapi-health-managerapple-connectappbeecron-nadconvizitblaze-telegrambizboa-bridge-server-tempbizboa-bridge-server-tmpdisbot-tsdisbotfcaufastjs-corefulkrum-embedfulkrum-embed-reactfulkrum-react-json-viewfreightwavesgalaxiat.serve.seo@skynetxbt/core
3.0.10

2 years ago

3.0.11

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.8

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

2.0.5

4 years ago

3.0.0

4 years ago

2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.2.0

7 years ago