Hyperlinkv0.8.0-beta.28

Stream

Stream.Errortypeeffect/Stream.ts:239
Error<T>

Extract the error type from a Stream type.

Example (Extracting the error type from a Stream type)

import type { Stream } from "effect"

type NumberStream = Stream.Stream<number, string, never>
type ErrorType = Stream.Error<NumberStream>
// ErrorType is string
utility types
Source effect/Stream.ts:2391 lines
export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _E : never
Referenced by 1 symbols