(base: string, prefix?: string)
| 252 | prefix?: P, |
| 253 | ): Names<`${P}:${T}`>; |
| 254 | export 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. |
no outgoing calls
no test coverage detected