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
The declaration files are generated normally without using the rollupTypes option, but if I set it to true the generated files are not valid. In particular, they generate the following:
Notice how the line declare const _default: ServiceConstructor<; is missing the closing > and the generic value.
I know these classes and types may seem a bit weird without much context, but that's the simplest thing I've been able to do whilst reproducing the issue.
Describe the bug
The declaration files are generated normally without using the
rollupTypes
option, but if I set it totrue
the generated files are not valid. In particular, they generate the following:Notice how the line
declare const _default: ServiceConstructor<;
is missing the closing>
and the generic value.I know these classes and types may seem a bit weird without much context, but that's the simplest thing I've been able to do whilst reproducing the issue.
Reproduction
https://github.com/NoelDeMartin/vite-sandbox/tree/lib-dts
Steps to reproduce
Run
npm install
followed bynpm run build
, then look at the generated filedist/my-lib.d.ts
.System Info
Validations
The text was updated successfully, but these errors were encountered: