Skip to content

Commit

Permalink
add a override of teststring is null
Browse files Browse the repository at this point in the history
  • Loading branch information
lvxiang committed May 14, 2021
1 parent 02e8eed commit 097bf06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type PicomatchOptions = {dot: boolean};

declare const anymatch: {
(matchers: AnymatchMatcher): AnymatchTester;
(matchers: AnymatchMatcher, testString: null, returnIndex: true | PicomatchOptions): AnymatchTester;
(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
(matchers: AnymatchMatcher, testString: string|any[]): boolean;
}
Expand Down

0 comments on commit 097bf06

Please sign in to comment.