UNPKG

reshuffle

Version:

Reshuffle is a fast, unopinionated, minimalist integration framework

18 lines (17 loc) 609 B
/// <reference types="node" /> import { BaseConnector, EventConfiguration } from 'reshuffle-base-connector'; import Timer = NodeJS.Timer; import Reshuffle from '../Reshuffle'; export interface CronEventOptions { interval: number; } export default class CronConnector extends BaseConnector<null, CronEventOptions> { intervalsByEventId: { [eventId: string]: Timer; }; constructor(id?: string); on(options: CronEventOptions | undefined, eventId: string): EventConfiguration; onRemoveEvent(event: EventConfiguration): void; onStart(app: Reshuffle): void; onStop(): void; }