diff --git a/index.d.ts b/index.d.ts index 46c2230..4ef7345 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,6 +22,14 @@ declare namespace Bowser { function parse(UA: string): Parser.ParsedResult; + /** + * Constants exposed via bowser getters + */ + const BROWSER_MAP: Record; + const ENGINE_MAP: Record; + const OS_MAP: Record; + const PLATFORMS_MAP: Record; + namespace Parser { interface Parser { constructor(UA: string, skipParsing?: boolean): Parser.Parser; diff --git a/src/bowser.js b/src/bowser.js index f79e6e0..cd20d7c 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -5,7 +5,7 @@ * MIT License | (c) Denis Demchenko 2015-2019 */ import Parser from './parser.js'; -import { +export { BROWSER_MAP, ENGINE_MAP, OS_MAP,