@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
6 lines (5 loc) • 332 B
TypeScript
/**
* @returns Promise that will be resolved or rejected in `timeout` with an optional `payload`
* If `isReject` is `true` the result promise will be rejected, otherwise (by default) the result promise will be resolved
*/
export declare function promisifyTimeout<T>(timeout: number, payload?: T, isReject?: boolean): Promise<T>;