bowser
bowser copied to clipboard
Problem for type definitions about getParser and parse
Hi, i am a snowpack and typescript user.
The type definition looks like i can use bowser like its:
import { getParser } from 'bowser';
But in fact, bowser is only export default Bowser object. I am in confuse with it
Discussion on snowpack for reference https://github.com/snowpackjs/snowpack/discussions/2114
Default export for bowser was added in 2.0.0-alpha.1
in July 2018 https://github.com/lancedikson/bowser/pull/227
Typings for v2 were added in https://github.com/lancedikson/bowser/pull/277