ObservedValueOf
type-alias
stable
Extracts the type from an ObservableInput<any>
. If you have O extends ObservableInput<any>
and you pass in Observable<number>
, or Promise<number>
, etc, it will type as number
.
type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/type-alias/ObservedValueOf