UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

14 lines 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.promisifyResult = promisifyResult; /** * If the incoming function returns a promise, return the promise. * Otherwise, return a promise that resolves to the incoming function's return value. */ function promisifyResult(result) { if (result instanceof Promise) { return result; } return Promise.resolve(result); } //# sourceMappingURL=promisifyResult.js.map