codecov-action
codecov-action copied to clipboard
Type definitions are not imported to the developer
~~The TypeScript compilation step does not emit declaration files corresponding to the TypeScript input.~~
@RA80533 I'm not sure this is completely necessary, but my TS knowledge isn't incredible. Would you mind spelling it out for me?
I worded this all very poorly.
TypeScript isn't able to bring in the types included in the libraries imported with the CommonJS syntax (require) because the behavior of that module system is defined entirely by the engine it runs in (Node.js). There's nuance to the idea that Node.js should supply the module as expected—certain things like pluggable module loaders exist for CommonJS that allow Node.js to emit different output. On the other hand, the ECMAScript module system has standardized behavior which allows TypeScript to model the types of things being imported based on the type definitions they're published with.
Brevity is the soul of wit.
TypeScript brings in type definitions for modules imported via import.
Closing as we are moving to a python uploader soon