Package: effect
Module: Brand
Returns a Constructor that can construct a branded type from an unbranded
value using the provided filter predicate as validation of the input data.
When to use
Use when you want validation while constructing the branded type.
See
nominal for a brand constructor that performs no validation.Signature
declare const make: <A extends Brand<any>>(filter: (unbranded: Brand.Unbranded<A>) => Schema.FilterOutput) => Constructor<A>
Since v4.0.0