MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeDeclareClass

Function makeDeclareClass

packages/effect/src/Schema.ts:1047–1057  ·  view source on GitHub ↗
(
  typeParameters: P,
  ast: AST.AST
)

Source from the content-addressed store, hash-verified

1045}
1046
1047function makeDeclareClass<P extends ReadonlyArray<Schema.All>, A, I, R>(
1048 typeParameters: P,
1049 ast: AST.AST
1050): declare<A, I, P, R> {
1051 return class DeclareClass extends make<A, I, R>(ast) {
1052 static override annotations(annotations: Annotations.Schema<A>): declare<A, I, P, R> {
1053 return makeDeclareClass(this.typeParameters, mergeSchemaAnnotations(this.ast, annotations))
1054 }
1055 static typeParameters = [...typeParameters] as any as P
1056 }
1057}
1058
1059/**
1060 * The constraint `R extends Schema.Context<P[number]>` enforces dependencies solely from `typeParameters`.

Callers 3

declareConstructorFunction · 0.85
declarePrimitiveFunction · 0.85
annotationsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected