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

Function Struct

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

Source from the content-addressed store, hash-verified

3605 * @since 3.10.0
3606 */
3607export function Struct<const Fields extends Struct.Fields>(fields: Fields): Struct<Fields> {
3608 return makeStruct(SchemaAST.struct(fields, undefined), fields)
3609}
3610interface fieldsAssign<NewFields extends Struct.Fields> extends Lambda {
3611 <Fields extends Struct.Fields>(
3612 struct: Struct<Fields>

Callers 10

encodeKeysFunction · 0.70
extendToFunction · 0.70
TaggedStructFunction · 0.70
Schema.tsFile · 0.70
CauseReasonFunction · 0.70
ExitFunction · 0.70
graphEncodedSchemaFunction · 0.70
graphToArbitraryFunction · 0.70
OptionFunction · 0.70
ResultFunction · 0.70

Calls 1

makeStructFunction · 0.70

Tested by

no test coverage detected