News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by samtheprogram on Saturday April 27, 2024 @02:31AM (#40177776)
Correct, so the question should have been: is readonly necessary?

I wouldn’t call myself an expert in TypeScript’s type system (although I use it daily), so I’m not sure about that one.

I do know I would have omitted readonly if I did this myself, but perhaps by mistake.

There are no comments on this comment yet.