@coze/taro-api
Version:
Official Coze Taro SDK for seamless AI integration into your applications | 扣子官方 Taro SDK,助您轻松集成 AI 能力到应用中
26 lines (25 loc) • 816 B
TypeScript
type EventListener = () => void;
export declare class AbortSignalPonyfill {
private events;
aborted: boolean;
reason: unknown;
onabort(reason?: unknown): void;
addEventListener(_: string, cb: EventListener): void;
removeEventListener(_: string, cb?: EventListener): void;
}
export declare class AbortControllerPonyfill {
signal: AbortSignalPonyfill;
abort(reason?: unknown): void;
}
export declare const AbortController: typeof AbortControllerPonyfill | {
new (): AbortController;
prototype: AbortController;
};
export declare const AbortSignal: typeof AbortSignalPonyfill | {
new (): AbortSignal;
prototype: AbortSignal;
abort(reason?: any): AbortSignal;
any(signals: AbortSignal[]): AbortSignal;
timeout(milliseconds: number): AbortSignal;
};
export {};