UNPKG

collaborative-ui

Version:

React component library for building real-time collaborative editing applications.

9 lines (8 loc) 359 B
import { BehaviorSubject } from 'rxjs'; export type JsonBlockViewTab = 'text' | 'json' | 'interactive' | 'minified'; export declare class JsonBlockState { readonly view$: BehaviorSubject<JsonBlockViewTab>; readonly path$: BehaviorSubject<string>; readonly setView: (view: JsonBlockViewTab) => void; readonly setPath: (path: string) => void; }