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:
commit
5c47015b6b
9
index.d.ts
vendored
9
index.d.ts
vendored
@ -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
|
||||
@ -222,3 +220,4 @@ declare namespace Parser {
|
||||
[key: string]: any;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user