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

Function brand

packages/effect/src/SchemaAST.ts:3477–3481  ·  view source on GitHub ↗
(ast: AST, brand: string)

Source from the content-addressed store, hash-verified

3475
3476/** @internal */
3477export function brand(ast: AST, brand: string): AST {
3478 const existing = InternalAnnotations.resolveBrands(ast)
3479 const brands = existing ? [...existing, brand] : [brand]
3480 return annotate(ast, { brands })
3481}
3482
3483/**
3484 * Maps over the array but will return the original array if no changes occur.

Callers

nothing calls this directly

Calls 1

annotateFunction · 0.70

Tested by

no test coverage detected