UNPKG

clickable-json

Version:

Interactive JSON and JSON CRDT viewer and editor

10 lines (9 loc) 396 B
import * as React from 'react'; import type { Model } from 'json-joy/lib/json-crdt'; import type { NodeRef } from './NodeRef'; export interface ClickableJsonCrdtContextValue { model: Model; render: (node: NodeRef<any>) => React.ReactNode; } export declare const context: React.Context<ClickableJsonCrdtContextValue>; export declare const useJsonCrdt: () => ClickableJsonCrdtContextValue;