mergeFactory
| Generic types: | TCacheData A T M |
This function merges multiple observables and applies a project function when all observables are done. It returns an Observable that emits either the value of type A[number] or a BuilderState
Presentation
function mergeFactory (
tag: string,
sources: [...ObservableInputTuple <A>],
project: (...args_0: BuilderStateTuple <A>) => Promise<T>,
cacheStrategy: CacheStrategy <TCacheData, T>,
mapper: (source: [...BuilderStateTuple <A>][number]) => M,
): Observable <BuilderState <T | M>>;Returns
Observable <BuilderState <T | M>> -An Observable that emits either the value of type A[number] or a BuilderState
Parameters
| Name | Type | Description |
|---|---|---|
| tag | string | A string representing the tag. |
| sources | [... | An array of Observables. |
| project | (...args_0: | A function that takes an array of BuilderState |
| cacheStrategy | | An optional parameter that defines the cache strategy. |
| mapper | (source: [... |
Overloads
| Overload #1 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This function merges multiple observables and applies a project function when all observables are done. It returns an Observable that emits either the value of type A[number] or a BuilderState | ||||||||||||||||||
Presentation | ||||||||||||||||||
Parameters
Returns -An Observable that emits either the value of type A[number] or a BuilderState |
| Overload #2 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No documentation has been provided. | |||||||||||||||
Presentation | |||||||||||||||
Parameters
Returns |