Closed steida closed 4 years ago
As I understand, branded type replaces newtype, except in the case where we explicitly don't want downgradeability to the base type, which is very rare (string token to not be considered to be string for security purposes).
https://github.com/gcanti/io-ts-types/issues/111
I believe this awesome lib should be deprecated or io-ts should be mentioned at least.
@gcanti I can send PR.
I believe this awesome lib should be deprecated
Some people prefer newtypes over branded types
See also https://github.com/gcanti/io-ts-types/issues/111
As I understand, branded type replaces newtype, except in the case where we explicitly don't want downgradeability to the base type, which is very rare (string token to not be considered to be string for security purposes).
https://github.com/gcanti/io-ts-types/issues/111