| 121 | */ |
| 122 | export 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 | |
| 142 | const variance = { |
nothing calls this directly
no outgoing calls
no test coverage detected