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

fix: update types to include constants

This commit is contained in:
Alex Hinds 2019-12-19 17:05:56 +11:00
parent ea8d9c5427
commit 9c3fc30c81
2 changed files with 9 additions and 1 deletions

8
index.d.ts vendored
View File

@ -22,6 +22,14 @@ declare namespace Bowser {
function parse(UA: string): Parser.ParsedResult;
/**
* Constants exposed via bowser getters
*/
const BROWSER_MAP: Record<string, string>;
const ENGINE_MAP: Record<string, string>;
const OS_MAP: Record<string, string>;
const PLATFORMS_MAP: Record<string, string>;
namespace Parser {
interface Parser {
constructor(UA: string, skipParsing?: boolean): Parser.Parser;

View File

@ -5,7 +5,7 @@
* MIT License | (c) Denis Demchenko 2015-2019
*/
import Parser from './parser.js';
import {
export {
BROWSER_MAP,
ENGINE_MAP,
OS_MAP,