mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
added type definition for parser.isBrowser
This commit is contained in:
parent
bdc8355216
commit
a523ded89c
10
index.d.ts
vendored
10
index.d.ts
vendored
@ -174,6 +174,16 @@ declare namespace Bowser {
|
|||||||
|
|
||||||
satisfies(checkTree: checkTree): boolean | undefined;
|
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)`
|
* Check if any of the given values satifies `.is(anything)`
|
||||||
* @param {string[]} anythings
|
* @param {string[]} anythings
|
||||||
|
Loading…
Reference in New Issue
Block a user