Skip to content

Commit

Permalink
added type definition for parser.isBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
ashernguyen committed Jan 13, 2020
1 parent bdc8355 commit a523ded
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ declare namespace Bowser {

satisfies(checkTree: checkTree): boolean | undefined;

/**
* Check if the browser name equals the passed string
* @param browserName The string to compare with the browser name
* @param [includingAlias=false] The flag showing whether alias will be included into comparison
* @returns {boolean}
*/


isBrowser(browserName: string, includingAlias?: boolean): boolean;

/**
* Check if any of the given values satifies `.is(anything)`
* @param {string[]} anythings
Expand Down

0 comments on commit a523ded

Please sign in to comment.