Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem for type definitions about getParser and parse #458

Open
moonrailgun opened this issue Dec 5, 2020 · 2 comments
Open

Problem for type definitions about getParser and parse #458

moonrailgun opened this issue Dec 5, 2020 · 2 comments

Comments

@moonrailgun
Copy link

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

@trivikr
Copy link

trivikr commented Feb 2, 2021

Discussion on snowpack for reference FredKSchott/snowpack#2114

@trivikr
Copy link

trivikr commented Feb 2, 2021

Default export for bowser was added in 2.0.0-alpha.1 in July 2018 #227
Typings for v2 were added in #277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants