UNPKG

@anthropic-ai/sdk

Version:
11 lines 384 B
/** * A deferred: a `Promise` together with its `resolve` / `reject` functions. * This is `Promise.withResolvers()`, which is not available in all supported * runtimes. */ export declare function promiseWithResolvers<T>(): { promise: Promise<T>; resolve: (value: T | PromiseLike<T>) => void; reject: (reason?: unknown) => void; }; //# sourceMappingURL=promise.d.ts.map