(json: unknown)
| 5 | import { iconForType } from "./icons"; |
| 6 | |
| 7 | export function generateColumnViewNode(json: unknown): ColumnViewNode { |
| 8 | const info = inferType(json); |
| 9 | const path = new JSONHeroPath("$"); |
| 10 | const children = generateChildren(info, path); |
| 11 | |
| 12 | return { |
| 13 | name: "root", |
| 14 | title: "root", |
| 15 | id: "$", |
| 16 | icon: iconForType(info), |
| 17 | children, |
| 18 | }; |
| 19 | } |
| 20 | |
| 21 | function generateChildren( |
| 22 | info: JSONValueType, |
no test coverage detected