(path: string, json: unknown)
| 29 | } |
| 30 | |
| 31 | export function colorForItemAtPath(path: string, json: unknown): string { |
| 32 | const heroPath = new JSONHeroPath(path); |
| 33 | const value = heroPath.first(json); |
| 34 | const item = inferType(value); |
| 35 | |
| 36 | return colorForTypeName(item.name); |
| 37 | } |
no test coverage detected