effect-io-ai

Package: effect
Module: Newtype

Newtype.Newtype.Key

Extracts the key literal type from a newtype.

When to use

Use to inspect or constrain a newtype’s key in generic code.

Signature

type Key<N> = N extends Newtype<infer Key, unknown> ? Key : never

Source

Since v4.0.0