@arizeai/phoenix-client
Version:
A client for the Phoenix API
12 lines • 402 B
JavaScript
/**
* Resolves a {@link ProjectIdentifier} union to a plain string
* suitable for the REST `project_identifier` path parameter.
*/
export function resolveProjectIdentifier(identifier) {
if ("project" in identifier)
return identifier.project;
if ("projectId" in identifier)
return identifier.projectId;
return identifier.projectName;
}
//# sourceMappingURL=projects.js.map