UNPKG

@arizeai/phoenix-client

Version:
6 lines 413 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<Result>(result: Result): (Result extends Promise<infer ResolvedValue> ? Promise<ResolvedValue> : never) | (Result extends Promise<unknown> ? never : Promise<Result>); //# sourceMappingURL=promisifyResult.d.ts.map