openai
Version:
The official TypeScript library for the OpenAI API
7 lines • 355 B
TypeScript
/**
* Like `Promise.allSettled()` but throws an error if any promises are rejected.
* Rejection reasons remain available on the thrown error's non-enumerable `rejections`
* property without being written to the global console.
*/
export declare const allSettledWithThrow: <R>(promises: Promise<R>[]) => Promise<R[]>;
//# sourceMappingURL=Util.d.ts.map