@tabula/ui-json-view
Version:
Allows to view JSON in interactive way
14 lines (13 loc) • 443 B
TypeScript
import { ComplexType, JsonArray, JsonObject, JsonValue } from '../../../types';
type Item<Key, Property> = [Key, Property, JsonValue];
type ArrayItem = Item<number, number>;
type ObjectItem = Item<number, string>;
type Meta = {
children: ArrayItem[] | ObjectItem[];
openSymbol: string;
closeSymbol: string;
size: number;
type: ComplexType;
};
export declare function metaOf(value: JsonArray | JsonObject): Meta;
export {};