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

Function fieldsAssign

packages/effect/src/Schema.ts:3609–3611  ·  view source on GitHub ↗
(fields: NewFields)

Source from the content-addressed store, hash-verified

3607 * @since 4.0.0
3608 */
3609export function fieldsAssign<const NewFields extends Struct.Fields>(fields: NewFields) {
3610 return Struct_.lambda<fieldsAssign<NewFields>>((struct) => struct.mapFields(Struct_.assign(fields)))
3611}
3612
3613/**
3614 * Type-level representation returned by {@link encodeKeys}.

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
mapFieldsMethod · 0.65

Tested by

no test coverage detected