From a523ded89c2c23dd0ead4a195337bd2966e687b2 Mon Sep 17 00:00:00 2001 From: Asher Nguyen Date: Mon, 13 Jan 2020 15:18:02 +1100 Subject: [PATCH] added type definition for parser.isBrowser --- index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.d.ts b/index.d.ts index 46c22309..591221a4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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