Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only named exports can use 'export type' error #105

Closed
EmilIvanov opened this issue May 25, 2023 · 5 comments · Fixed by #106
Closed

Only named exports can use 'export type' error #105

EmilIvanov opened this issue May 25, 2023 · 5 comments · Fixed by #106

Comments

@EmilIvanov
Copy link

EmilIvanov commented May 25, 2023

Hi, I'm getting this on the latest version:

node_modules/zod-openapi/lib-types/index.d.ts:3:1 - error TS1383: Only named exports may use 'export type'.

3 export type * from './openapi3-ts/dist';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/zod-openapi/lib-types/index.d.ts:3

TypeScript doesn't like the export type *

@samchungy
Copy link
Owner

Interesting @EmilIvanov , what version of Typescript are you running?

@EmilIvanov
Copy link
Author

@samchungy 4.9.5

@samchungy
Copy link
Owner

samchungy commented May 25, 2023

I see I see, looks like they added it in 5.0.

microsoft/TypeScript#52217

Hmmm let me see if there's something else I can do then. I may make this a breaking change down the line in future versions

@EmilIvanov
Copy link
Author

@samchungy I guess, I should add that I have TS configured like so "skipLibCheck": false,, in order to validate some d.ts files in the project. This wouldn't be a problem otherwise.

@samchungy
Copy link
Owner

Should be fixed in 2.4.0, thanks for reporting @EmilIvanov!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants