Hyperlinkv0.8.0-beta.28

Effect

Effect.Errortypeeffect/Effect.ts:194
Error<T>

Extracts the error type from an Effect.

When to use

Use to derive the error type from an existing Effect type when declaring helper types, wrappers, or APIs that preserve the effect's failure channel.

Details

Non-Effect inputs resolve to never.

Source effect/Effect.ts:1942 lines
export type Error<T> = T extends Effect<infer _A, infer _E, infer _R> ? _E
  : never
Referenced by 7 symbols