@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
11 lines (10 loc) • 522 B
TypeScript
import type { Token } from "../../expressions/lexer/types.js";
import type { CompletionItem } from "./types.js";
export type ContextEntry = {
value: unknown;
type: "string" | "number" | "array" | "object" | "function" | "boolean" | "date";
return?: "string" | "number" | "array" | "object" | "date";
};
type CompletionContext = Record<string, ContextEntry>;
export declare function createCompletionProvider(context: CompletionContext): (tokens: Token[], cursorPosition: number) => CompletionItem[];
export {};