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:
7
index.d.ts
vendored
7
index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user