Re:Problems with TypeScript
by sondang on Wednesday January 15, 2020 @09:12PM
(#22061071)
You can do:
Even though you used string there, it's pretty type-safe because if you have a typo in your string, the inferred types will propagate other type errors
[ Parent
| on HN ]
There are no comments on this comment yet.