Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
660 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | type AnymatchFn = (testString: string) => boolean;
|
---|
| 2 | type AnymatchPattern = string|RegExp|AnymatchFn;
|
---|
| 3 | type AnymatchMatcher = AnymatchPattern|AnymatchPattern[]
|
---|
| 4 | type AnymatchTester = {
|
---|
| 5 | (testString: string|any[], returnIndex: true): number;
|
---|
| 6 | (testString: string|any[]): boolean;
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | type PicomatchOptions = {dot: boolean};
|
---|
| 10 |
|
---|
| 11 | declare const anymatch: {
|
---|
| 12 | (matchers: AnymatchMatcher): AnymatchTester;
|
---|
| 13 | (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
|
---|
| 14 | (matchers: AnymatchMatcher, testString: string|any[]): boolean;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | export {AnymatchMatcher as Matcher}
|
---|
| 18 | export {AnymatchTester as Tester}
|
---|
| 19 | export default anymatch
|
---|
Note:
See
TracBrowser
for help on using the repository browser.