7 lines
331 B
TypeScript
Executable file
7 lines
331 B
TypeScript
Executable file
export type TSetTimeout = (callback: (...args: any[]) => void, time?: number, args?: any[]) => any;
|
|
/**
|
|
* `setTimeoutUnref` is just like `setTimeout`,
|
|
* only in Node's environment it will "unref" its macro task.
|
|
*/
|
|
declare function setTimeoutUnref(callback: any, time?: any, args?: any): object;
|
|
export default setTimeoutUnref;
|