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

Class ArrayClass

packages/effect/src/Schema.ts:1576–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1574 ast?: AST.AST
1575): Array$<Value> {
1576 return class ArrayClass extends makeTupleTypeClass<[], [Value]>([], [value], ast) {
1577 static override annotations(annotations: Annotations.Schema<TupleType.Type<[], [Value]>>) {
1578 return makeArrayClass(this.value, mergeSchemaAnnotations(this.ast, annotations))
1579 }
1580
1581 static value = value
1582 }
1583}
1584
1585const Array$ = <Value extends Schema.Any>(value: Value): Array$<Value> => makeArrayClass(value)

Callers

nothing calls this directly

Calls 1

makeTupleTypeClassFunction · 0.85

Tested by

no test coverage detected