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

Fix usage of default exports with TypeScript #1459

Merged
merged 3 commits into from Nov 10, 2020
Merged

Fix usage of default exports with TypeScript #1459

merged 3 commits into from Nov 10, 2020

Conversation

remcohaszing
Copy link
Contributor

This is done by assigning the property default for all properties that are exported using export default according to their type definitions.

Closes #1424

This is done by assigning the property `default` for all properties that are
exported using `export default` according to their type definitions.

Closes #1424
This options looses type strictness. This causes TypeScript tests to work, but
that doesn’t mean the same imports would work for users who don’t use
`esModuleInterop`.
This reverts commit e738254.

The current ESLint setup conflicts with itself when using
`import stripAnsi = require('strip-ansi')`, which is what should actually be
used.
@ai ai merged commit 9958714 into postcss:master Nov 10, 2020
@ai
Copy link
Member

ai commented Nov 10, 2020

Released in 8.1.7

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

Successfully merging this pull request may close these issues.

Invalid TypeScript Type (Default Export)
2 participants