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

Can no longer import specific exports in TypeScript #364

Closed
veloek opened this issue Dec 14, 2022 · 2 comments
Closed

Can no longer import specific exports in TypeScript #364

veloek opened this issue Dec 14, 2022 · 2 comments

Comments

@veloek
Copy link

veloek commented Dec 14, 2022

Not sure if this was intentional, but it's no longer (with v8) possible to import specific exports in TypeScript, ex:

import { parse, stringify } from "query-string"
@MagicFame
Copy link

MagicFame commented Dec 14, 2022

Yes, you can import with the following line

import queryString from 'query-string';

and use after

queryString.stringify()

@sindresorhus
Copy link
Owner

Duplicate of #363

@sindresorhus sindresorhus marked this as a duplicate of #363 Dec 14, 2022
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

3 participants