1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge pull request #289 from JaceHensley/feat/improve-types/dev

Export Parser types
This commit is contained in:
Denis Demchenko 2019-04-14 13:18:21 +03:00 committed by GitHub
commit 5c47015b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
index.d.ts vendored
View File

@ -6,7 +6,6 @@ export = Bowser;
export as namespace Bowser;
declare namespace Bowser {
/**
* Creates a Parser instance
* @param {string} UA - User agent string
@ -22,11 +21,10 @@ declare namespace Bowser {
*/
function parse(UA: string): Parser.ParsedResult;
}
declare namespace Parser {
class Parser {
constructor(UA: string, skipParsing?: boolean);
namespace Parser {
interface Parser {
constructor(UA: string, skipParsing?: boolean): Parser.Parser;
/**
* Get parsed browser object
@ -221,4 +219,5 @@ declare namespace Parser {
interface checkTree {
[key: string]: any;
}
}
}