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:
parent
70acb60537
commit
da80f755ce
8
index.d.ts
vendored
8
index.d.ts
vendored
@ -5,6 +5,14 @@
|
|||||||
export default Bowser;
|
export default Bowser;
|
||||||
export as namespace 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 {
|
declare namespace Bowser {
|
||||||
/**
|
/**
|
||||||
* Creates a Parser instance
|
* Creates a Parser instance
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user