UNPKG

@openfga/frontend-utils

Version:

Exposes helpful utilities for building authoring experiences of OpenFGA Models.

12 lines (11 loc) 502 B
import { Keyword } from "../../../constants/keyword"; import { MonacoEditor } from "../typings"; import type { editor, languages, Position } from "monaco-editor"; export type DocumentationMap = Partial<Record<Keyword, { summary: string; link?: string; }>>; export declare const providerHover: (monaco: typeof MonacoEditor, documentationMap?: Partial<Record<string, { summary: string; link?: string; }>>) => (model: editor.ITextModel, position: Position) => languages.Hover | undefined;