by treis · 4y ago · 0 comments
I can see a type system designed from the ground up to do something like this. But as a bolt on to existing languages it's pretty clunky.
type VerifiedEmailOptedOutOfMarketing = { email: string; is_verified: true; is_opted_out: true; };