(value: unknown, options?: { depth?: number })
| 22 | } |
| 23 | |
| 24 | export 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 | |
| 29 | function formatValue(value: unknown, maxDepth: number, depth: number): string { |
| 30 | if (depth > maxDepth) return "..."; |
no test coverage detected