TS1363
error TS1363: A type-only import can specify a default import or named bindings, but not both.
Broken Code ❌
1 |
|
Fixed Code ✔️
With type-only imports and exports you cannot use a default import together with a named import in one single line of code. The TypeScript team chose this limitation to avoid ambiguity. You will have to use separate import statements:
1 |
|