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

Function annotateKey

packages/effect/src/Schema.ts:717–721  ·  view source on GitHub ↗
(annotations: Annotations.Key<S["Type"]>)

Source from the content-addressed store, hash-verified

715 * @since 4.0.0
716 */
717export function annotateKey<S extends Top>(annotations: Annotations.Key<S["Type"]>) {
718 return (self: S): S["Rebuild"] => {
719 return self.rebuild(SchemaAST.annotateKey(self.ast, annotations))
720 }
721}
722
723/**
724 * The existential "any schema" type — all type parameters are erased to `unknown`.

Callers

nothing calls this directly

Calls 2

rebuildMethod · 0.65
annotateKeyMethod · 0.65

Tested by

no test coverage detected