-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Suggestion
π Search Terms
verbatimModuleSyntax type quick fix
β Viability Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
β Suggestion
I am trying out the beta, and got this message when enabling verbatimModuleSyntax (as expected). However, the only quick fix available to me was the one to convert the import to a namespace import.
π Motivating Example
import { ImAType, NotAType } from "foo";Becomes:
import { type ImAType, NotAType } from "foo";Or:
import { type ImAType } from "foo";
import { NotAType } from "foo";I thought we had it (maybe it only works for preserveValueImports?)
π» Use Cases
People switching these new stricter flags on.
antoninhrlt and Hi99s
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript