effect-io-ai

Package: effect
Module: Brand

Brand.make

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

Signature

declare const make: <A extends Brand<any>>(filter: (unbranded: Brand.Unbranded<A>) => Schema.FilterOutput) => Constructor<A>

Source

Since v4.0.0