News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by skybrian on Wednesday April 24, 2024 @01:55PM (#40147591)
I use branded types for database id’s to avoid mixing them up. It seems like better documentation and might catch some errors, but mixing up database id’s seems like an uncommon error, so hard to say.

There are no comments on this comment yet.