Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper/monorepo.babel7-20200114033043
Browse files Browse the repository at this point in the history
  • Loading branch information
lancedikson authored Jan 28, 2020
2 parents 341dd8e + 9af50fd commit 433955a
Show file tree
Hide file tree
Showing 3 changed files with 687 additions and 1,036 deletions.
18 changes: 18 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ declare namespace Bowser {

function parse(UA: string): Parser.ParsedResult;

/**
* Constants exposed via bowser getters
*/
const BROWSER_MAP: Record<string, string>;
const ENGINE_MAP: Record<string, string>;
const OS_MAP: Record<string, string>;
const PLATFORMS_MAP: Record<string, string>;

namespace Parser {
interface Parser {
constructor(UA: string, skipParsing?: boolean): Parser.Parser;
Expand Down Expand Up @@ -174,6 +182,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
Loading

0 comments on commit 433955a

Please sign in to comment.