MCPcopy Create free account
hub / github.com/Effect-TS/effect / brand

Function brand

packages/effect/src/Schema.ts:5229–5232  ·  view source on GitHub ↗
(identifier: B)

Source from the content-addressed store, hash-verified

5227 * @since 3.10.0
5228 */
5229export function brand<B extends string>(identifier: B) {
5230 return <S extends ConstraintRebuildable>(schema: S): brand<S["Rebuild"], B> =>
5231 make(SchemaAST.brand(schema.ast, identifier), { schema, identifier })
5232}
5233
5234/**
5235 * Creates a branded schema from a {@link Brand.Constructor}, applying the

Callers 1

fromBrandFunction · 0.70

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected