forked from projectmoon/tenebrous-dicebot
14 lines
419 B
TypeScript
Executable File
14 lines
419 B
TypeScript
Executable File
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>;
|
|
}
|