[all] Error with type only exports with TypeScript 3.8.3
See original GitHub issueI get a lot of errors like this one with TS 3.8.3, but not with 3.8.2:
node_modules/@thi.ng/associative/index.d.ts:1:1 - error TS1383: Only named exports may use 'export type'.
1 export type * from "./api";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is related to this issue and this PR. It effectively disallows this kind of re-export. I could not find any information, whether this should actually work or not. Anyway, this is a breaking change in Typescript.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Documentation - TypeScript 3.8
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >Do I need to use the "import type" feature of TypeScript 3.8 if ...
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >Leveraging Type-Only imports and exports with TypeScript 3.8
Well, as the TS release notes explain, by importing an element using “import type”, it tells the compiler that the element is only...
Read more >[TS 3.8] Jest is unable to work with "type-only imports/exports"
When using a new "type-only impors/exports" feature introduced in TypeScript 3.8 it is impossible to run tests due to the parsing error:.
Read more >type-only imports — A new TypeScript feature that benefits ...
Example 1 — Ambiguous re-export · Babel removes everything from our types module because it only contained types, which have no use in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In case you haven’t seen yet - Prettier 2.0.1 has been released over the weekend - yay!
no prob, @andrew8er & thanks, as always, for reporting this! 😃