effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.Context

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.

See

Signature

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
  ) }

Source

Since v4.0.0