News for hackers. Stuff that matters.
Re:Run TypeScript code without worrying about configuration by matt_kantor on Thursday July 17, 2025 @08:39PM (#44599941)
I find that for most of my use cases, branded types[1] are close enough to nominal (especially if you use a private `unique symbol` as the brand).

[1]: https://www.learningtypescript.com/articles/branded-types

Re:Run TypeScript code without worrying about configuration by alpinisme on Friday July 18, 2025 @10:52AM (#44605309)
I did say easy and by that I also meant lightweight. You can just use a string not an object with a relatively esoteric symbol in addition to whatever serializable value you need.