effect-io-ai

Package: effect
Module: Schema

Schema.Record.Key

Constraint for schemas that can be used as record keys.

Details

The key schema must decode and encode property keys (string, number, or symbol) so it can describe object property names.

Signature

export interface Key extends Codec<PropertyKey, PropertyKey, unknown, unknown> {
    readonly "~type.make": PropertyKey
    readonly "Iso": PropertyKey
  }

Source

Since v4.0.0