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

Function annotateKey

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

Source from the content-addressed store, hash-verified

750 * @since 4.0.0
751 */
752export function annotateKey<S extends Top>(annotations: Annotations.Key<S["Type"]>) {
753 return (self: S): S["Rebuild"] => {
754 return self.rebuild(SchemaAST.annotateKey(self.ast, annotations))
755 }
756}
757/**
758 * The existential "any schema" type — all type parameters are erased to `unknown`.
759 *

Callers

nothing calls this directly

Calls 2

rebuildMethod · 0.80
annotateKeyMethod · 0.80

Tested by

no test coverage detected