News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by eropple on Wednesday April 24, 2024 @03:02PM (#40148199)
Generally speaking, I wouldn't use branded inputs for libraries. Branded types make a lot more sense to me when working in business-logic cases, to identify data at the edge of a bounded context and tracing through the system. A library is downstream of that and the code that requires the branded type should be controlling the inputs to the library.

There are no comments on this comment yet.