2 ms·
Types are meta data for the compiler. They are not code that is compiled to JavaScript, so I isolate my type definitions to d.ts files. That is the only reaso
by austin-cheney 2y ago
Types are meta data for the compiler. They are not code that is compiled to JavaScript, so I isolate my type definitions to d.ts files. That is the only reason I have d.ts files at all.
- sharlos201068 2y agoTypes are also documentation for the developers reading and editing the code.