@arizeai/phoenix-client
Version:
A client for the Phoenix API
6 lines • 413 B
TypeScript
/**
* If the incoming function returns a promise, return the promise.
* Otherwise, return a promise that resolves to the incoming function's return value.
*/
export declare function promisifyResult<Result>(result: Result): (Result extends Promise<infer ResolvedValue> ? Promise<ResolvedValue> : never) | (Result extends Promise<unknown> ? never : Promise<Result>);
//# sourceMappingURL=promisifyResult.d.ts.map