Constructs a branded type from a value of type A
, throwing an error if
the provided A
is not valid.
Constructs a branded type from a value of type A
, returning Right<A>
if the provided A
is valid, Left<BrandError>
otherwise.
Readonly
[Readonly
[Readonly
From: ((_) => From)Readonly
To: ((_) => To)Readonly
ast
Since
1.0.0