UNPKG

express-post-task-scheduler

Version:

A lightweight npm package to create and manage scheduled tasks using Express middleware. Configure tasks via POST requests and execute them at specified times seamlessly.

12 lines (11 loc) 285 B
import { Response } from "express"; import { StatusCodes } from "http-status-codes"; export type IResponse = { code: StatusCodes; message?: string; data?: any; error?: any; }; export interface IExtendResponse extends Response<any> { jr: (res: IResponse) => void; }