Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
williamdclt
· 6y ago · 0 comments
For anybody interested in this technique: the googleable term is "branding". It's bringing some nominal typing into TS's structural typing
Comments
[–]
phpnode
6y ago
I wrote an article about this a while ago:
https://codemix.com/opaque-types-in-javascript
[–]
ricksharp
6y ago
Cool, I never knew what that was called. Thanks!