From da80f755ce63bf7f323fe37d90aaa690090a6617 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 12:57:55 +0000 Subject: [PATCH] Update TypeScript definitions to include named exports Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com> --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.d.ts b/index.d.ts index d5b72c4..096416b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -5,6 +5,14 @@ export default Bowser; export as namespace Bowser; +// Named exports for tree shaking support +export function getParser(UA: string, skipParsing?: boolean): Bowser.Parser.Parser; +export function parse(UA: string): Bowser.Parser.ParsedResult; +export const BROWSER_MAP: Record; +export const ENGINE_MAP: Record; +export const OS_MAP: Record; +export const PLATFORMS_MAP: Record; + declare namespace Bowser { /** * Creates a Parser instance