From 6a3a99c6c3ccf5d711392466729d21d7ceaf4b84 Mon Sep 17 00:00:00 2001 From: Matthew Dapena-Tretter Date: Fri, 28 Oct 2016 12:06:29 -0700 Subject: [PATCH] RxJS 5: Remove cache operator The `cache()` operator was removed by ReactiveX/rxjs#2012. Since this is still a prerelease (and Flow doesn't yet support prerelease versions), we'll just remove it. --- definitions/npm/rxjs_v5.0.x/flow_v0.29.0-/rxjs_v5.0.x.js | 2 -- definitions/npm/rxjs_v5.0.x/test_rxjs.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/definitions/npm/rxjs_v5.0.x/flow_v0.29.0-/rxjs_v5.0.x.js b/definitions/npm/rxjs_v5.0.x/flow_v0.29.0-/rxjs_v5.0.x.js index ff478bc793..82bc121035 100644 --- a/definitions/npm/rxjs_v5.0.x/flow_v0.29.0-/rxjs_v5.0.x.js +++ b/definitions/npm/rxjs_v5.0.x/flow_v0.29.0-/rxjs_v5.0.x.js @@ -102,8 +102,6 @@ declare class rxjs$Observable<+T> { buffer(bufferBoundaries: rxjs$Observable): rxjs$Observable>; - cache(bufferSize?: number, windowTime?: number): rxjs$Observable; - catch(selector: (err: any, caught: rxjs$Observable) => rxjs$Observable): rxjs$Observable; concat(...sources: rxjs$Observable[]): rxjs$Observable; diff --git a/definitions/npm/rxjs_v5.0.x/test_rxjs.js b/definitions/npm/rxjs_v5.0.x/test_rxjs.js index 47e83d868d..2a482f568b 100644 --- a/definitions/npm/rxjs_v5.0.x/test_rxjs.js +++ b/definitions/npm/rxjs_v5.0.x/test_rxjs.js @@ -90,9 +90,6 @@ const never: Observable = Observable.empty() // $ExpectError (Observable.of(2).startWith(1, '2', 3): Observable); -(numbers.cache(): Observable); -(numbers.cache(1): Observable); - (numbers.withLatestFrom(strings): Observable<[number, string]>); // $ExpectError (numbers.withLatestFrom(numbers): Observable<[number, string]>);