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

Function Struct

packages/effect/src/unstable/schema/VariantSchema.ts:577–581  ·  view source on GitHub ↗
(fields: A)

Source from the content-addressed store, hash-verified

575}
576
577const Struct = <const A extends Field.Fields>(fields: A): Struct<A> => {
578 const self = Object.create(StructProto)
579 self[TypeId] = fields
580 return self
581}
582
583const FieldProto = {
584 [FieldTypeId]: FieldTypeId,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected