UNPKG

codemirror-json-schema

Version:

Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`

8 lines (7 loc) 286 B
import { JSONMode, JSONPointersMap } from "../types"; import { EditorState } from "@codemirror/state"; export declare const getDefaultParser: (mode: JSONMode) => DocumentParser; export type DocumentParser = (state: EditorState) => { data: unknown; pointers: JSONPointersMap; };