DefinitelyTyped/types/picomatch/parse.d.ts
Patrick a29e36d95b
[picomatch] Add basic types. (#44221)
* [picomatch] Add basic types.

* [picomatch] Fix some lint issues.

* Update github link for definition author.
2020-04-27 13:09:16 -04:00

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;