MCPcopy Create free account
hub / github.com/effect-app/libs / transform

Function transform

repos/effect/packages/effect/src/Schema.ts:2604–2609  ·  view source on GitHub ↗
(to: L2)

Source from the content-addressed store, hash-verified

2602
2603/**
2604 * Extracts the type-side schema: sets `Encoded` to equal the decoded `Type`,
2605 * discarding the encoding transformation path.
2606 *
2607 * @category transforming
2608 * @since 4.0.0
2609 */
2610export const toType = Struct_.lambda<toTypeLambda>((schema) => make(SchemaAST.toType(schema.ast), { schema }))
2611
2612/**

Callers 8

fromTransformFunction · 0.70
makeCompilerFunction · 0.50
makeCompilerFunction · 0.50
makeCompilerFunction · 0.50
makeCompilerFunction · 0.50
makeCompilerFunction · 0.50

Calls 6

decodeToFunction · 0.70
LiteralFunction · 0.70
UnionFunction · 0.70
pipeMethod · 0.65
transformMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…