import * as Y from "yjs" ; export type Primitive = bigint | boolean | null | number | string | symbol | undefined ; export type JSONValue = Primitive | JSONObject | JSONArray ; export type JSONObject = { [ key ] : JSONValue ; } ; export type JSONArray = Array < JSONValue > ; export function isYType ( element ) { return element instanceof Y . AbstractType ; }