Package: effect
Module: Schema
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
}
Since v4.0.0