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
For declaration files generated during compilation, the compiler will automatically add /// <reference types="..." /> for you; A /// <reference types="..." /> in a generated declaration file is added if and only if the resulting file uses any declarations from the referenced package.
This also breaks when building storybook in angular projects. When I manually add the directive it works again:
We are using tsup in storybook, but we seem to have a problem with the declaration files emitted by tsup.
This is a minimal reproduction of the file:
When I just try to generate type declaration with tsc, it will output this:
But when I do same with tsup, the triple slash types directive is missing:
Can I somehow configure
tsup
to generate those directives. It seems like this is meant to be included:https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-
This also breaks when building storybook in angular projects. When I manually add the directive it works again:
One workaround I found is setting the banner:
Upvote & Fund
The text was updated successfully, but these errors were encountered: