Merge pull request #390 from ashernguyen/AddTypeForIsBrowser

added type definition for `isBrowser` in Parser Class
pull/398/head
Denis Demchenko 4 years ago committed by GitHub
commit 07fcffe812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
index.d.ts vendored

@ -182,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

Loading…
Cancel
Save