MCPcopy Create free account
hub / github.com/Effect-TS/effect / annotateKey

Function annotateKey

packages/effect/src/internal/schema/schema.ts:57–59  ·  view source on GitHub ↗
(this: Schema.Top, annotations: Schema.Annotations.Key<unknown>)

Source from the content-addressed store, hash-verified

55 return this.rebuild(SchemaAST.annotate(this.ast, annotations))
56 },
57 annotateKey(this: Schema.Top, annotations: Schema.Annotations.Key<unknown>) {
58 return this.rebuild(SchemaAST.annotateKey(this.ast, annotations))
59 },
60 check(this: Schema.Top, ...checks: readonly [SchemaAST.Check<unknown>, ...Array<SchemaAST.Check<unknown>>]) {
61 return this.rebuild(SchemaAST.appendChecks(this.ast, checks))
62 }

Callers

nothing calls this directly

Calls 2

rebuildMethod · 0.65
annotateKeyMethod · 0.65

Tested by

no test coverage detected