Hyperlinkv0.8.0-beta.28

SchemaAST

SchemaAST.ASTtypeeffect/SchemaAST.ts:54
AST

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").
Source effect/SchemaAST.ts:5422 lines
Referenced by 47 symbols