( elements: Elements, rest: Rest, ast: AST.AST = getDefaultTupleTypeAST(elements, rest) )
| 1499 | ) |
| 1500 | |
| 1501 | function makeTupleTypeClass<Elements extends TupleType.Elements, Rest extends TupleType.Rest>( |
| 1502 | elements: Elements, |
| 1503 | rest: Rest, |
| 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 | /** |
| 1524 | * @category api interface |
no test coverage detected
searching dependent graphs…