forked from projectmoon/tenebrous-dicebot
14 lines
419 B
TypeScript
14 lines
419 B
TypeScript
|
declare module 'timers/promises' {
|
||
|
import { TimerOptions } from 'timers';
|
||
|
|
||
|
/**
|
||
|
* Returns a promise that resolves after the specified delay in milliseconds.
|
||
|
*/
|
||
|
function setTimeout<T>(delay: number, value?: T, options?: TimerOptions): Promise<T>;
|
||
|
|
||
|
/**
|
||
|
* Returns a promise that resolves in the next tick.
|
||
|
*/
|
||
|
function setImmediate<T>(value: T, options?: TimerOptions): Promise<T>;
|
||
|
}
|