Closed zxti closed 5 years ago
Thanks for reporting!
I couldn't reproduce, though, I did one step differently: node run.js
instead of using ts-node
.
Here is the content of my collected-types.json
:
[["C:/P/simple-node-typewiz-repro/a.ts",25,[["string",null]],{}]]
What does yours look like?
Oh, that works for me as well! I'm guessing there's some interference between ts-node and typewiz-node - maybe typewiz is instrumenting some transpiled version of the code that ts-node is handing it? I don't really know how node loaders compose. Closing as a non-issue, thank you.
Hello, I have created a simple minimal repo here to repro this issue:
https://github.com/zxti/simple-node-typewiz-repro
Basically, just run:
And you will see this:
The run.js is from https://github.com/urish/typewiz-node-no-apply (via #87), and the problem only appears this way.
For some reason I do not see anything wrong when just running typewiz-node directly, so I may very well be doing something wrong here:
But (per #87) I'm interested in not immediately applying types....