Installation
npm install --save @types/antlr4-autosuggest
Summary
This package contains type definitions for antlr4-autosuggest (https://github.com/oranoran/antlr4-autosuggest-js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/antlr4-autosuggest.
index.d.ts
import antlr4 from "antlr4";
export type CasePreference = "LOWER" | "UPPER" | "BOTH";
export interface AutoSuggester {
autosuggest: (inputText: string) => string[];
}
export interface Constructor<T> {
new(...args: any[]): T;
}
export function autosuggester(
lexerCtr: Constructor<antlr4.Lexer>,
parserCtr: Constructor<antlr4.Parser>,
casePref?: CasePreference | null,
): AutoSuggester;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/antlr4
Credits
These definitions were written by Jon Freedman.