Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
0x6c6f6c
on Oct 13, 2021
|
parent
|
context
|
favorite
| on:
Tricks I wish I knew when I learned TypeScript
Only one small terminology issue: & is an intersection of types, a union is |. So Ensure is an intersection of T and the latter type.
Wouldn't Required suffice here as well for this as opposed to removing the optional qualifier?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Wouldn't Required suffice here as well for this as opposed to removing the optional qualifier?