Hyperlinkv0.8.0-beta.28

Stream

Stream.Successtypeeffect/Stream.ts:221
Success<T>

Extract the success type from a Stream type.

Example (Extracting the success type from a Stream type)

import type { Stream } from "effect"

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