UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

6 lines 364 B
/** * 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<T>(result: T): (T extends Promise<infer U> ? Promise<U> : never) | (T extends Promise<unknown> ? never : Promise<T>); //# sourceMappingURL=promisifyResult.d.ts.map