Skip to content

Commit

Permalink
Fix typess.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 11, 2019
1 parent d474c82 commit cd0df7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import sep from 'path';
type AnymatchFn = (string) => boolean;
type AnymatchPattern = string|RegExp|AnymatchFn;
type AnymatchMatcher = AnymatchPattern|Array<AnymatchPattern>
declare function anymatch(matchers: AnymatchMatcher, testString: string|Array, returnIndex?: boolean): boolean;
declare function anymatch(matchers: AnymatchMatcher): (testString: string|Array, returnIndex?: boolean) => number;
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;

0 comments on commit cd0df7c

Please sign in to comment.