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

Function runtimeBrands

packages/effect/src/internal/schema/toCodeDocument.ts:313–317  ·  view source on GitHub ↗
(brands: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

311 }
312
313 function runtimeBrands(brands: ReadonlyArray<string>): string {
314 return brands.length === 0
315 ? ""
316 : `.pipe(${brands.map((brand) => `Schema.brand(${format(brand)})`).join(", ")})`
317 }
318
319 function typeBrands(brands: ReadonlyArray<string>): string {
320 if (brands.length === 0) return ""

Callers 1

applyNodeFunction · 0.85

Calls 3

formatFunction · 0.90
joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected