Skip to content

Commit

Permalink
Merge pull request #42 from Alucelx/master
Browse files Browse the repository at this point in the history
add a override of teststring is null
  • Loading branch information
paulmillr authored May 14, 2021
2 parents 02e8eed + 097bf06 commit 0aeecc2
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 0aeecc2

Please sign in to comment.