Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Favour TypeScript Types over Interfaces
(
lloydatkinson.net
)
3 points
by
lloydatkinson
on Nov 26, 2023
|
hide
|
past
|
favorite
|
1 comment
chatmasta
on Nov 26, 2023
[–]
If you're composing multiple types, you should probably prefer interface inheritance over type merging, for both performance and correctness reasons:
https://github.com/microsoft/TypeScript/wiki/Performance#pre...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: