1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

feat: add named exports for tree shaking support with modern bundlers (#566)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com>
Co-authored-by: naorpeled <me@naor.dev>
This commit is contained in:
Copilot
2025-11-22 15:15:13 +02:00
committed by GitHub
parent 2b5ee5de8c
commit bd5cb7186c
3 changed files with 75 additions and 1 deletions

7
index.d.ts vendored
View File

@@ -5,6 +5,13 @@
export = Bowser;
export as namespace Bowser;
export function getParser(UA: string, skipParsing?: boolean): Bowser.Parser.Parser;
export function parse(UA: string): Bowser.Parser.ParsedResult;
export const BROWSER_MAP: Record<string, string>;
export const ENGINE_MAP: Record<string, string>;
export const OS_MAP: Record<string, string>;
export const PLATFORMS_MAP: Record<string, string>;
declare namespace Bowser {
/**
* Creates a Parser instance