Json

Unpublished development API. This package is under development and is not available as a published release.

Application-owned incremental JSON parser with snapshot observation, document updates, and explicit disposal.

import type { Json } from '@threadplane/content/json';

Declaration

export interface Json  {
  readonly dispose: () => void;
  readonly getSnapshot: () => JsonSnapshot;
  readonly subscribe: (notify: () => void) => () => void;
  readonly update: (document: JsonDocument) => void;
}

Members

dispose

readonly dispose: () => void;

getSnapshot

readonly getSnapshot: () => JsonSnapshot;

subscribe

readonly subscribe: (notify: () => void) => () => void;

update

readonly update: (document: JsonDocument) => void;