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

Function make

packages/effect/src/Schema.ts:122–140  ·  view source on GitHub ↗
(ast: AST.AST)

Source from the content-addressed store, hash-verified

120 * @since 3.10.0
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 = {
143 /* c8 ignore next */

Callers 15

annotationsMethod · 0.70
encodedSchemaFunction · 0.70
encodedBoundSchemaFunction · 0.70
typeSchemaFunction · 0.70
LiteralClassClass · 0.70
UniqueSymbolFromSelfFunction · 0.70
EnumsClassClass · 0.70
TemplateLiteralFunction · 0.70
DeclareClassClass · 0.70
UndefinedClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…