Skip to content

Type Alias: UnwrapSourceValueStrict<T>

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

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

Recursively extracts the emitted value type from an Observable or an array of Observables, similar to UnwrapSourceValue.

However, if the Observable does not have a .value property (i.e., it is not a BehaviorSubject), the resulting type is unioned with undefined to reflect that an initial value may not be immediately available.

Type Parameters

T

T

The input type to unwrap.