MCPcopy Create free account
hub / github.com/code-pushup/cli / getNames

Function getNames

packages/utils/src/lib/user-timing-extensibility-api-utils.ts:254–261  ·  view source on GitHub ↗
(base: string, prefix?: string)

Source from the content-addressed store, hash-verified

252 prefix?: P,
253): Names<`${P}:${T}`>;
254export function getNames(base: string, prefix?: string) {
255 const n = prefix ? `${prefix}:${base}` : base;
256 return {
257 startName: `${n}:start`,
258 endName: `${n}:end`,
259 measureName: n,
260 } as const;
261}
262
263/**
264 * Removes undefined from a type, effectively filtering out undefined values.

Calls

no outgoing calls

Tested by

no test coverage detected