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

Class SchemaClass

packages/effect/src/Schema.ts:123–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 */
122export function make<A, I = A, R = never>(ast: AST.AST): SchemaClass<A, I, R> {
123 return class SchemaClass {
124 [TypeId] = variance
125 static ast = ast
126 static annotations(annotations: Annotations.GenericSchema<A>) {
127 return make<A, I, R>(mergeSchemaAnnotations(this.ast, annotations))
128 }
129 static pipe() {
130 return pipeArguments(this, arguments)
131 }
132 static toString() {
133 return String(ast)
134 }
135 static Type: A
136 static Encoded: I
137 static Context: R
138 static [TypeId] = variance
139 }
140}
141
142const variance = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…