effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.optionalKey

Marks an AST node’s property key as optional by setting Context.isOptional to true.

Details

Also propagates the optional flag through the last link of the encoding chain if present.

See

Signature

declare const optionalKey: <A extends AST>(ast: A) => A

Source

Since v4.0.0