Closed benjamin-hodgson closed 5 years ago
We’d have to do this in a post-build step, I think. Our .d.ts
files are generated by the TypeScript compiler, not checked into the source tree.
I’m sorry. I was thinking of the @stimulus/core
package. You’re correct, that’s where the change should be made.
No worries. Would you like me to send you a pull request or would you prefer to do it yourself?
A pull request would be great - thank you!
I want to use Stimulus as a UMD global from a non-module-based TypeScript project.
The
index.d.ts
file which ships with Stimulus only declares a TypeScript module, not a UMD global as well, which means that you can't use Stimulus in a TS script file.Please could you add
export as namespace Stimulus
toindex.d.ts
?