effect-io-ai

Package: effect
Module: Newtype

Newtype.Newtype.Carrier

Extracts the carrier (underlying) type from a newtype.

When to use

Use when you need to refer to the wrapped type in generic utilities.

Signature

type Carrier<N> = N extends Newtype<infer _Key, infer Carrier> ? Carrier : never

Source

Since v4.0.0