Optional
combinator
combinator?: {
<T, O>(project: ((value: T, index: number) => O)): OperatorFunction<T, ObservedValueOf<O>>;
<T, O>(project: ((value: T, index: number) => O), resultSelector: undefined): OperatorFunction<T, ObservedValueOf<O>>;
<T, R, O>(project: ((value: T, index: number) => O), resultSelector: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R)): OperatorFunction<T, R>;
}
Type declaration
-
- <T, O>(project: ((value: T, index: number) => O)): OperatorFunction<T, ObservedValueOf<O>>
-
Type Parameters
-
T
-
O extends ObservableInput<any>
Parameters
-
project: ((value: T, index: number) => O)
-
- (value: T, index: number): O
-
Returns O
Returns OperatorFunction<T, ObservedValueOf<O>>
- <T, O>(project: ((value: T, index: number) => O), resultSelector: undefined): OperatorFunction<T, ObservedValueOf<O>>
-
Type Parameters
-
T
-
O extends ObservableInput<any>
Parameters
-
project: ((value: T, index: number) => O)
-
- (value: T, index: number): O
-
Returns O
-
resultSelector: undefined
Returns OperatorFunction<T, ObservedValueOf<O>>
- <T, R, O>(project: ((value: T, index: number) => O), resultSelector: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R)): OperatorFunction<T, R>
-
Type Parameters
-
T
-
R
-
O extends ObservableInput<any>
Parameters
-
project: ((value: T, index: number) => O)
-
- (value: T, index: number): O
-
Returns O
-
resultSelector: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R)
-
- (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number): R
-
Parameters
-
outerValue: T
-
innerValue: ObservedValueOf<O>
-
outerIndex: number
-
innerIndex: number
Returns R
Returns OperatorFunction<T, R>
Deprecated
The
resultSelector
parameter will be removed in v8. Use an innermap
instead. Details: https://rxjs.dev/deprecations/resultSelector