You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems there is an exportCommonSymbols option which solves the problem at hand, but I will leave open for the other improvement which is to output those types in a separate file and import them
Tofandel
changed the title
Is there a way to avoid exporting of reused types
Is there a way to reuse common types?
Mar 19, 2024
Hi @Tofandel , you're right we don't have an option to put the common types in a shared package, and export that from the index file. We could probably just do that if outputIndex=true was enabled.
If you'd like to submit a PR for that, that'd be great! Thank you!
stephenh
changed the title
Is there a way to reuse common types?
Add common types to their own file/export w/outputIndex option
Mar 21, 2024
In each ts file generated there is
The biggest problem I have with this is that they are exported (so I can't use export * from './protofile.ts')
Is there a way to have them imported from a shared file in each ts file and to not export them?
The text was updated successfully, but these errors were encountered: