@baqhub/sdk
Version:
The official JavaScript SDK for the BAQ federated app platform.
16 lines (15 loc) • 642 B
TypeScript
import { CustomError } from "./customError.js";
export declare class AbortedError extends CustomError {
constructor();
}
declare function throwIfAborted(signal: AbortSignal | undefined): void;
declare function delay(delayMilliseconds: number, abort?: AbortSignal): Promise<void>;
declare function wait(signal: AbortSignal): Promise<void>;
declare function sharePromise<T>(promiseCreator: (signal: AbortSignal) => Promise<T>): (signal?: AbortSignal) => Promise<T>;
export declare const Async: {
throwIfAborted: typeof throwIfAborted;
delay: typeof delay;
wait: typeof wait;
sharePromise: typeof sharePromise;
};
export {};