Package: effect
Module: SchemaAST
Represents per-property metadata attached to AST nodes via Base.context.
Details
Tracks whether a property key is optional, mutable, has a constructor
default, or carries key-level annotations. Typically set by helpers like
optionalKey and Schema.mutableKey.
isOptional — the property key may be absent from the input.isMutable — the property is readonly when false.defaultValue — an Encoding applied during construction to
supply missing values.annotations — key-level annotations (e.g. description of the key
itself).See
optionalKeyisOptionalSignature
declare class Context { constructor(
isOptional: boolean,
isMutable: boolean,
/** Used for constructor default values (e.g. `withConstructorDefault` API) */
defaultValue: Encoding | undefined = undefined,
annotations: Schema.Annotations.Key<unknown> | undefined = undefined
) }
Since v4.0.0