|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
763 bytes
|
| Line | |
|---|
| 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: null, returnIndex: true | PicomatchOptions): AnymatchTester;
|
|---|
| 14 | (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
|
|---|
| 15 | (matchers: AnymatchMatcher, testString: string|any[]): boolean;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | export {AnymatchMatcher as Matcher}
|
|---|
| 19 | export {AnymatchTester as Tester}
|
|---|
| 20 | export default anymatch
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.