Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bikitan
on July 7, 2024
|
parent
|
context
|
favorite
| on:
Speeding up the JavaScript ecosystem – Isolated De...
But why would any of that need to be done manually in a .d.ts file? You can just write your type definitions in ts files
austin-cheney
on July 7, 2024
[–]
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
on July 8, 2024
|
parent
[–]
Types are also documentation for the developers reading and editing the code.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: