Package: effect
Module: Types
Extracts the type parameter A from an Invariant<A>.
When to use
Use to recover the carried type from an invariant phantom marker.
Example (Extracting the inner type)
import type { Types } from "effect"
type Inner = Types.Invariant.Type<Types.Invariant<number>>
// number
See
InvariantSignature
type Type<A> = A extends Invariant<infer U> ? U : never
Since v3.9.0