Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
atwood22
on Aug 25, 2022
|
parent
|
context
|
favorite
| on:
Can Types Replace Validation?
That’s an interesting idea. You could define a custom type that has the type of [number, number] and combine it with Omit to remove methods that allow extending the array.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: