rxjs#ObservedValueOf TypeScript Examples

The following examples show how to use rxjs#ObservedValueOf. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: rxjs.resource.ts    From slickgrid-universal with MIT License 5 votes vote down vote up
/** Projects each source value to an Observable which is merged in the output Observable, emitting values only from the most recently projected Observable. */
  switchMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O): OperatorFunction<T, ObservedValueOf<O>> {
    return switchMap(project);
  }
Example #2
Source File: rxjsResourceStub.ts    From slickgrid-universal with MIT License 5 votes vote down vote up
switchMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O): OperatorFunction<T, ObservedValueOf<O>> {
    return switchMap(project);
  }