1
0
mirror of https://github.com/lancedikson/bowser synced 2025-12-05 06:02:14 +00:00

Update TypeScript definitions to include named exports

Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-22 12:57:55 +00:00
parent 70acb60537
commit da80f755ce

8
index.d.ts vendored
View File

@ -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<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