Hyperlinkv0.8.0-beta.28

Schema

Schema.resolveAnnotationsfunctioneffect/Schema.ts:14230
<S extends Constraint>(schema: S):
  | Annotations.Bottom<S["Type"], S["~type.parameters"]>
  | undefined

Resolves the typed annotations from a schema. The term "resolve" (rather than "get") reflects the lookup strategy: if the schema has checks, the annotations are taken from the last check; otherwise they are taken from the base schema instance.

Schema Resolvers
export function resolveAnnotations<S extends Constraint>(
  schema: S
): Annotations.Bottom<S["Type"], S["~type.parameters"]> | undefined {
  return InternalAnnotations.resolve(schema.ast)
}
Referenced by 1 symbols