@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
11 lines • 384 B
TypeScript
/**
* 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