codemirror-json-schema
Version:
Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`
10 lines (9 loc) • 470 B
TypeScript
import { type EditorView } from "@codemirror/view";
import { type HoverOptions } from "../features/hover";
import { Side } from "../types";
export type JSON5HoverOptions = Exclude<HoverOptions, "mode">;
/**
* Instantiates a JSONHover instance with the JSON5 mode
* @group Codemirror Extensions
*/
export declare function json5SchemaHover(options?: JSON5HoverOptions): (view: EditorView, pos: number, side: Side) => Promise<import("@codemirror/view").Tooltip | null>;