@types/antlr4-autosuggest
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/antlr4-autosuggest

Weekly Downloads

74

Version

0.0.4

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • types