UNPKG

@arizeai/phoenix-client

Version:
11 lines 350 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 function promisifyResult(result) { if (result instanceof Promise) { return result; } return Promise.resolve(result); } //# sourceMappingURL=promisifyResult.js.map