doc.yeswiki.pro/node_modules/vscode-textmate/release/matcher.d.ts

9 lines
306 B
TypeScript
Raw Normal View History

2023-05-20 19:37:42 +03:00
export interface MatcherWithPriority<T> {
matcher: Matcher<T>;
priority: -1 | 0 | 1;
}
export interface Matcher<T> {
(matcherInput: T): boolean;
}
export declare function createMatchers<T>(selector: string, matchesName: (names: string[], matcherInput: T) => boolean): MatcherWithPriority<T>[];