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

Function formatNestedValues

packages/cli/src/lib/implementation/formatting.ts:25–35  ·  view source on GitHub ↗
(
  options: Record<string, T>,
  propName: keyof T,
)

Source from the content-addressed store, hash-verified

23}
24
25export function formatNestedValues<T>(
26 options: Record<string, T>,
27 propName: keyof T,
28) {
29 return Object.fromEntries(
30 Object.entries(options).map(([key, opts]) => [
31 key,
32 formatObjectValue(opts, propName),
33 ]),
34 );
35}

Callers 2

yargsCliFunction · 0.85

Calls 1

formatObjectValueFunction · 0.85

Tested by

no test coverage detected