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
Is there any way to hide private classes? I would like dts-generator only generate declarations based on index.ts exports, and I don't want my users to see private classes.
The text was updated successfully, but these errors were encountered:
Do you mean some kind of "tree shaking"?
In terms of exported types, only the exported types of the given input files, plus all recursively reachable types from those top-level types should be included in output. This is different from considering all exported types from all (recursively) imported modules.
That would be a really great feature!
I bundle my package (with esbuild) and have a facade file which exports only those types needed for external users - the public api. Everything else is not reachable anyway via the bundle. The d.ts file should reflect this.
Is there any way to hide private classes? I would like dts-generator only generate declarations based on index.ts exports, and I don't want my users to see private classes.
The text was updated successfully, but these errors were encountered: