effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.IndexSignature

Represents an index signature entry within an Objects node.

When to use

Use when constructing or inspecting object AST entries for record-like keys and values.

Details

Gotchas

Using Schema.optionalKey on the value type is not allowed for index signatures (throws at construction); use Schema.optional instead.

See

Signature

declare class IndexSignature { constructor(
    parameter: AST,
    type: AST,
    merge: KeyValueCombiner | undefined
  ) }

Source

Since v3.10.0