<S extends Constraint>(schema: S): Annotations.Key<S["Type"]> | undefinedResolves the context (key-level) annotations from a schema. Context
annotations are those attached via annotateKey and live on the AST's
context rather than on the schema node itself.
Schema Resolvers
Source effect/Schema.ts:142443 lines
export function function resolveAnnotationsKey<
S extends Constraint
>(
schema: S
): Annotations.Key<S["Type"]> | undefined
Resolves the context (key-level) annotations from a schema. Context
annotations are those attached via annotateKey and live on the AST's
context rather than on the schema node itself.
resolveAnnotationsKey<function (type parameter) S in resolveAnnotationsKey<S extends Constraint>(schema: S): Annotations.Key<S["Type"]> | undefinedS extends Constraint>(schema: S extends Constraintschema: function (type parameter) S in resolveAnnotationsKey<S extends Constraint>(schema: S): Annotations.Key<S["Type"]> | undefinedS): Annotations.interface Annotations.Key<T>Annotations for struct property schemas. Extends
Documentation
with an optional messageMissingKey to override the error message when
the property key is absent during decoding.
Key<function (type parameter) S in resolveAnnotationsKey<S extends Constraint>(schema: S): Annotations.Key<S["Type"]> | undefinedS["Type"]> | undefined {
return schema: S extends Constraintschema.Constraint["ast"]: SchemaAST.ASTast.Base.context: Context | undefinedcontext?.Context.annotations: Annotations.Key<unknown> | undefinedannotations
}