Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 17, 2019
1 parent cd0df7c commit 463f011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import sep from 'path';

type AnymatchFn = (string) => boolean;
type AnymatchFn = (testString: string) => boolean;
type AnymatchPattern = string|RegExp|AnymatchFn;
type AnymatchMatcher = AnymatchPattern|Array<AnymatchPattern>
declare function anymatch(matchers: AnymatchMatcher, testString: string|Array<any>): boolean;
declare function anymatch(matchers: AnymatchMatcher, testString: string|Array<any>, returnIndex: true): number;
declare function anymatch(matchers: AnymatchMatcher): (testString: string|Array<any>) => boolean;
declare function anymatch(matchers: AnymatchMatcher): (testString: string|Array<any>, returnIndex: true) => number;
export = anymatch;
export = anymatch;

0 comments on commit 463f011

Please sign in to comment.