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