Package: effect
Module: Schema
Creates a branded schema from a Brand.Constructor, applying the
constructor’s checks and brand tag to the underlying schema.
Signature
declare const fromBrand: <A extends Brand.Brand<any>>(identifier: string, ctor: Brand.Constructor<A>) => <S extends Top & { readonly "Type": Brand.Brand.Unbranded<A>; }>(self: S) => brand<S["Rebuild"], Brand.Brand.Keys<A>>
Since v3.10.0