Package: effect
Module: SchemaAST
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
isOptionalContextSignature
declare const optionalKey: <A extends AST>(ast: A) => A
Since v4.0.0