Preventing non-branded types from being assigned to branded types in TypeScript
I'm aware branded types prevent assigning them to each other, but I noticed recently that strings can been seemingly assigned to branded types:
This passes the type-check. Is there a strict way to prevent the non-strict signature?
This passes the type-check. Is there a strict way to prevent the non-strict signature?
