UNPKG

clickable-json

Version:

Interactive JSON and JSON CRDT viewer and editor

9 lines (8 loc) 381 B
import { JsonNode } from 'json-joy/lib/json-crdt'; export declare class NodeRef<N extends JsonNode = JsonNode> { readonly node: N; readonly parent: NodeRef | null; step: string; constructor(node: N, parent: NodeRef | null, step: string); } export declare const nodeRef: <N extends JsonNode>(node: N, parent: NodeRef | null, step: string) => NodeRef<N> | undefined;