Skip to content

Commit

Permalink
docs(endWith): fix example imports
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Jan 21, 2020
1 parent 125131a commit d0f8913
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/internal/operators/endWith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ export function endWith<T, A extends any[]>(...args: A): OperatorFunction<T, T |
* ![](endWith.png)
*
* ## Example
* ### After the source observable completes, appends an emission and then completes too.
*
* Emit values to know when an interval starts and stops. The interval will
* stop when a user clicks anywhere on the document.
*
* ```ts
* import { interval, fromEvent } from 'rxjs';
* import { map, takeUntil, endWith } from 'rxjs/operators';
* import { map, startWith, takeUntil, endWith } from 'rxjs/operators';
*
* const ticker$ = interval(5000).pipe(
* map(() => 'tick'),
Expand Down

0 comments on commit d0f8913

Please sign in to comment.