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

Function appendTransformation

repos/effect/packages/effect/src/SchemaAST.ts:3167–3176  ·  view source on GitHub ↗
(
  from: AST,
  transformation:
    | SchemaTransformation.Transformation<any, any, any, any>
    | SchemaTransformation.Middleware<any, any, any, any, any, any>,
  to: A
)

Source from the content-addressed store, hash-verified

3165
3166/** @internal */
3167export function struct<Fields extends Schema.Struct.Fields>(
3168 fields: Fields,
3169 checks: Checks | undefined,
3170 annotations?: Schema.Annotations.Annotations
3171): Objects {
3172 return new Objects(
3173 Reflect.ownKeys(fields).map((key) => {
3174 return new PropertySignature(key, fields[key].ast)
3175 }),
3176 [],
3177 annotations,
3178 checks
3179 )

Callers 3

middlewareDecodingFunction · 0.85
middlewareEncodingFunction · 0.85
decodeToFunction · 0.85

Calls 1

replaceEncodingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…