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
By default, in the generated .d.ts file, only the type of the entry file is exported; but when other projects use this npm package, they need to use more types, and those types are not exported.
Version number:
rollup@4
typescript@5
rollup-plugin-dts@6
The text was updated successfully, but these errors were encountered:
I seem to have the same issue. All the d.ts files are compiled to the dist/dts/ folder. However, when running the dts plugin it only takes the contents of dist/dts/index.d.ts and ignores the rest of the d.ts files when "bundling".
It seems that if a type is used in the return type of a function it will be packaged but if it's only referenced in the index.ts file as a type of a function argument it won't get packaged. I've added a little example of when it's not packaged where I would expect Data to be packaged as I would like to reference to it from where this library that I'm building is used.
By default, in the generated .d.ts file, only the type of the entry file is exported; but when other projects use this npm package, they need to use more types, and those types are not exported.
Version number:
rollup@4
typescript@5
rollup-plugin-dts@6
The text was updated successfully, but these errors were encountered: