MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / inspect

Function inspect

packages/core/src/debug/debug.ts:24–27  ·  view source on GitHub ↗
(value: unknown, options?: { depth?: number })

Source from the content-addressed store, hash-verified

22}
23
24export function inspect(value: unknown, options?: { depth?: number }): VNode {
25 const text = formatValue(value, options?.depth ?? 3, 0);
26 return ui.text(text, { style: { dim: true } });
27}
28
29function formatValue(value: unknown, maxDepth: number, depth: number): string {
30 if (depth > maxDepth) return "...";

Callers 1

uiDebug.test.tsFile · 0.85

Calls 1

formatValueFunction · 0.70

Tested by

no test coverage detected