mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* [picomatch] Add basic types. * [picomatch] Fix some lint issues. * Update github link for definition author.
22 lines
400 B
TypeScript
22 lines
400 B
TypeScript
interface Token {
|
|
type: string;
|
|
value: string;
|
|
output: any;
|
|
}
|
|
|
|
interface State {
|
|
globstar: boolean;
|
|
consumed: string;
|
|
tokens: Token[];
|
|
index: number;
|
|
start: number;
|
|
brackets: number;
|
|
parens: number;
|
|
braces: number;
|
|
backtrack: boolean;
|
|
output: string;
|
|
}
|
|
|
|
declare function parse(input: string, options: { maxLength: number }): State;
|
|
export = parse;
|