-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Description
Hegel and Flow support type-only imports of the default binding with named bindings like this:
// default import with named import
import type defaultBinding, { otherBinding } from "module" // Error in TypeScript
The above is not supported by TypeScript: A type-only import can specify a default import or named bindings, but not both.
The workaround for TypeScript is to use an alias.
// default import with named import
import type { default as defaultBinding, otherBinding } from "module"
Should we widen the type-only import syntax to account for handling both immediate default imports and named imports?
ptomato, giltayar, romulocintra and rezonant