(ast: AST): string | undefinedReturns the title annotation from the AST node, if set.
Source effect/SchemaAST.ts:38431 lines
export const const resolveTitle: (
ast: AST
) => string | undefined
Returns the title annotation from the AST node, if set.
resolveTitle: (ast: ASTast: type AST =
| Declaration
| Null
| Undefined
| Void
| Never
| Unknown
| Any
| String
| Number
| Boolean
| BigInt
| Symbol
| Literal
| UniqueSymbol
| ObjectKeyword
| Enum
| TemplateLiteral
| Arrays
| Objects
| Union<AST>
| Suspend
Discriminated union of all AST node types.
Details
Every Schema has an .ast property of this type. Use the guard functions
(
isString
,
isObjects
, etc.) to narrow to a specific variant,
then access variant-specific fields.
- All variants share the
Base
fields:
annotations, checks,
encoding, context.
- Discriminate on the
_tag field (e.g. "String", "Objects", "Union").
AST) => string | undefined = import InternalAnnotationsInternalAnnotations.const resolveTitle: (
ast: SchemaAST.AST
) => string | undefined
resolveTitle