Closed alexandrutasica closed 7 months ago
@angeloashmore Noticed in a project of mine with Next.js, which requires --isolatedModule
set to true, after updating to @prismicio/client
v7. After the Migration Guide changes, Eslint returns errors for @prismicio/react
:
Type error: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
The change also keeps it consistent with index.ts
for exporting types.
Not a groundbreaking bugs, but surely will help others with the same issue.
Thanks for the fix, @alexandrutasica!
This has been released in v2.7.3
.
Types of changes
Description
Fixing issue when using Next.JS with Typescript with the mandatory
--isolatedModule
set totrue
. This requires having all type exports asexport type
. The change also keeps the type export consistent with theindex.ts
type exports. Fixes:Type error: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
Checklist:
🚘