effect-io-ai

Package: effect
Module: Brand

Brand.nominal

Returns a Constructor that does not apply any runtime checks and just returns the provided value.

When to use

Use to create nominal types that allow distinguishing between two values of the same type but with different meanings.

See

Signature

declare const nominal: <A extends Brand<any>>() => Constructor<A>

Source

Since v2.0.0