effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.isOptional

Returns true if the AST node represents an optional property.

Details

Checks ast.context?.isOptional. Defaults to false when no Context is set.

See

Signature

declare const isOptional: (ast: AST) => boolean

Source

Since v4.0.0