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

Function fieldsAssign

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

Source from the content-addressed store, hash-verified

3645 * @since 4.0.0
3646 */
3647export function fieldsAssign<const NewFields extends Struct.Fields>(fields: NewFields) {
3648 return Struct_.lambda<fieldsAssign<NewFields>>((struct) => struct.mapFields(Struct_.assign(fields)))
3649}
3650/**
3651 * Type-level representation returned by {@link encodeKeys}.
3652 *

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
mapFieldsMethod · 0.65

Tested by

no test coverage detected