Skip to content

Commit

Permalink
Merge pull request #42 from chinesedfan/patch-1
Browse files Browse the repository at this point in the history
Fix TS definitions
  • Loading branch information
gorangajic authored Sep 11, 2019
2 parents 857b1d6 + 17338c2 commit 49b10f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ declare function testUserAgent(userAgent: string): boolean;
* Extend the built-in list of bot user agent
* @param additionalFilters An array of user agents
*/
export function extend(additionalFilters: string[]): void;
declare function extend(additionalFilters: string[]): void;

/**
* Removes a set of user agent from the built-in list
* @param excludedFilters An array of user agents
*/
export function exclude(excludedFilters: string[]): void;
declare function exclude(excludedFilters: string[]): void;

export default testUserAgent;
testUserAgent.extend = extend;
testUserAgent.exclude = exclude;
export = testUserAgent;

0 comments on commit 49b10f3

Please sign in to comment.