UNPKG

@arizeai/phoenix-client

Version:
15 lines 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveProjectIdentifier = resolveProjectIdentifier; /** * Resolves a {@link ProjectIdentifier} union to a plain string * suitable for the REST `project_identifier` path parameter. */ function resolveProjectIdentifier(identifier) { if ("project" in identifier) return identifier.project; if ("projectId" in identifier) return identifier.projectId; return identifier.projectName; } //# sourceMappingURL=projects.js.map