Skip to content

Type Alias: UnwrapSourceValue<T>

UnwrapSourceValue<T> = T extends Observable<infer V> ? V : T extends readonly unknown[] ? { -readonly [K in keyof T]: UnwrapSourceValue<T[K]> } : T

Defined in: packages/rx/src/types.ts:39

Recursively extracts the emitted value type from an Observable, an array of Observables, or returns the type itself if it's a static value.

Type Parameters

T

T

The input type to unwrap.