@beignet/core
Version:
Core framework primitives for Beignet
11 lines • 559 B
TypeScript
type MaybePromise<T> = T | Promise<T>;
export declare const DEFAULT_ERROR_REPORTING_TIMEOUT_MS = 1000;
export declare class ErrorReportingTimeoutError extends Error {
readonly code: "ERROR_REPORTING_TIMEOUT";
readonly timeoutMs: number;
constructor(timeoutMs: number);
}
export declare function errorReportingObserverTimeout(timeoutMs: number | false): number | false;
export declare function runErrorReportingOperation<T>(operation: () => MaybePromise<T>, timeoutMs?: number | false): Promise<T>;
export {};
//# sourceMappingURL=internal.d.ts.map