Hyperlinkv0.8.0-beta.28

Schema

Schema.resolveAnnotationsKeyfunctioneffect/Schema.ts:14244
<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.

Schema Resolvers
export function resolveAnnotationsKey<S extends Constraint>(schema: S): Annotations.Key<S["Type"]> | undefined {
  return schema.ast.context?.annotations
}