MCPcopy
hub / github.com/Effect-TS/effect / TupleTypeClass

Class TupleTypeClass

packages/effect/src/Schema.ts:1506–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1504 ast: AST.AST = getDefaultTupleTypeAST(elements, rest)
1505) {
1506 return class TupleTypeClass extends make<
1507 TupleType.Type<Elements, Rest>,
1508 TupleType.Encoded<Elements, Rest>,
1509 Schema.Context<Elements[number]> | Schema.Context<Rest[number]>
1510 >(ast) {
1511 static override annotations(
1512 annotations: Annotations.Schema<TupleType.Type<Elements, Rest>>
1513 ): TupleType<Elements, Rest> {
1514 return makeTupleTypeClass(this.elements, this.rest, mergeSchemaAnnotations(this.ast, annotations))
1515 }
1516
1517 static elements = [...elements] as any as Elements
1518
1519 static rest = [...rest] as any as Rest
1520 }
1521}
1522
1523/**

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected