I've run into multiple issues with using new-javascript over time where the types appear to be not working nicely together just from using them with "types": ["new-javascript"].
Is this project edited in conjunction with tsc checking all of the file references? The only way to fix these errors is to enable "skipLibCheck": true, but that has shown to make things less accurate for me, because it also disables checking of my own .d.ts files for my app, not solely the ones in ./node_modules.
I tend to run a terminal window alongside my editor while I write in one file, as you can catch reference/type issues in other files when you change the exports from the file you have open. I think that appears to be some of the main issues with new-javascript's errors. I think part of the issue may also be that the project doesn't have a tsconfig.json, which would help narrow the use of types, in that you can enable things like "strict": true, which will ensure that un-typed any values don't go undeclared. There appears to be a few of those, where return types aren't defined, so my tsc is picking up on them being undeclared as any, since my project has "strict": true set.

I've run into multiple issues with using
new-javascriptover time where the types appear to be not working nicely together just from using them with"types": ["new-javascript"].Is this project edited in conjunction with
tscchecking all of the file references? The only way to fix these errors is to enable"skipLibCheck": true, but that has shown to make things less accurate for me, because it also disables checking of my own.d.tsfiles for my app, not solely the ones in./node_modules.I tend to run a terminal window alongside my editor while I write in one file, as you can catch reference/type issues in other files when you change the
exports from the file you have open. I think that appears to be some of the main issues withnew-javascript's errors. I think part of the issue may also be that the project doesn't have atsconfig.json, which would help narrow the use of types, in that you can enable things like"strict": true, which will ensure that un-typedanyvalues don't go undeclared. There appears to be a few of those, where return types aren't defined, so mytscis picking up on them being undeclared asany, since my project has"strict": trueset.