mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
643 B
TypeScript
19 lines
643 B
TypeScript
// Type definitions for antlr4-autosuggest 0.0
|
|
// Project: https://github.com/oranoran/antlr4-autosuggest-js
|
|
// Definitions by: Jon Freedman <https://github.com/jonfreedman>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as 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;
|