UNPKG

@tabula/ui-json-view

Version:
18 lines (17 loc) 397 B
import { JsonValue, Line } from '../../../types'; export type JsonPath = Array<number | string>; export type LineItem = { next?: Item; isLine: true; line: Line; }; export type ValueItem = { next?: Item; isLine: false; jsonPath: JsonPath; level: number; path: string; property?: number | string; value: JsonValue; }; export type Item = LineItem | ValueItem;