3 ms·
Good article on using branded classes with Typescript to avoid structural typing: https://prosopo.io/articles/typescript-branding/ https://prosopo.io/articles/
by robocat 2y ago
Good article on using branded classes with Typescript to avoid structural typing:
https://prosopo.io/articles/typescript-branding/ https://prosopo.io/articles/typescript-branding/
discussion: https://news.ycombinator.com/item?id=40146751 https://news.ycombinator.com/item?id=40146751