setTimeoutUnref.d.ts 339 B

1234567
  1. export declare type TSetTimeout = (callback: (...args: any[]) => void, time?: number, args?: any[]) => any;
  2. /**
  3. * `setTimeoutUnref` is just like `setTimeout`,
  4. * only in Node's environment it will "unref" its macro task.
  5. */
  6. declare function setTimeoutUnref(callback: any, time?: any, args?: any): object;
  7. export default setTimeoutUnref;