@zhengxs/wechaty-plugin-assistant
Version:
12 lines (11 loc) • 404 B
TypeScript
export declare class TimeoutError extends Error {
constructor(message: string);
}
/**
An error to be thrown when the request is aborted by AbortController.
DOMException is thrown instead of this Error when DOMException is available.
*/
export declare class AbortError extends Error {
constructor(message: string);
}
export declare function pTimeout(promise: any, options: any): Promise<unknown>;