Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pseudonom-
· 6y ago · 0 comments
This can be fairly smoothly achieved already:
https://dev.to/gcanti/functional-design-smart-constructors-1...
Comments
[–]
chadlavi
6y ago
Yeah I'm familiar with branded types, but they're cumbersome and require API changes beyond just type narrowing to implement. I just wish they'd figure out how to implement strong types in typescript without js side effects.