1
- /// <reference path="../typings/operators.d.ts" />
2
-
3
1
import { Observer } from './Observer' ;
4
2
import { Operator } from './Operator' ;
5
3
import { Scheduler } from './Scheduler' ;
@@ -16,11 +14,12 @@ import {Notification} from './Notification';
16
14
export type ObservableOrPromise < T > = Observable < T > | PromiseLike < T > ;
17
15
export type ArrayOrIterable < T > = IterableShim < T > | ArrayLike < T > | Array < T > ;
18
16
export type ObservableOrIterable < T > = ObservableOrPromise < T > | ArrayOrIterable < T > ;
17
+ import * as operators from "./operator-typings" ;
19
18
20
19
import { combineLatest as combineLatestStatic } from "./operators/combineLatest-static" ;
21
20
import { concat as concatStatic } from "./operators/concat-static" ;
22
21
import { merge as mergeStatic } from "./operators/merge-static" ;
23
- import { zip as zipStatic } from "./operators/merge -static" ;
22
+ import { zip as zipStatic } from "./operators/zip -static" ;
24
23
import { DeferObservable } from './observables/DeferObservable' ;
25
24
import { EmptyObservable } from './observables/EmptyObservable' ;
26
25
import { ForkJoinObservable } from './observables/ForkJoinObservable' ;
@@ -31,6 +30,7 @@ import {FromEventPatternObservable} from './observables/FromEventPatternObservab
31
30
import { PromiseObservable } from './observables/PromiseObservable' ;
32
31
import { IntervalObservable } from './observables/IntervalObservable' ;
33
32
import { InfiniteObservable } from './observables/InfiniteObservable' ;
33
+ import { TimerObservable } from './observables/TimerObservable' ;
34
34
import { RangeObservable } from './observables/RangeObservable' ;
35
35
import { ErrorObservable } from './observables/ErrorObservable' ;
36
36
@@ -79,7 +79,7 @@ export class Observable<T> implements CoreOperators<T> {
79
79
* operator defined as the new observable's operator.
80
80
*/
81
81
lift < T , R > ( operator : Operator < T , R > ) : Observable < T > {
82
- const observable = new Observable ( ) ;
82
+ const observable = new Observable < T > ( ) ;
83
83
observable . source = this ;
84
84
observable . operator = operator ;
85
85
return observable ;
@@ -177,80 +177,79 @@ export class Observable<T> implements CoreOperators<T> {
177
177
static zip : typeof zipStatic ;
178
178
179
179
// core operators
180
- buffer : operator_proto_buffer ;
181
- bufferCount : operator_proto_bufferCount ;
182
- bufferTime : operator_proto_bufferTime ;
183
- bufferToggle : operator_proto_bufferToggle ;
184
- bufferWhen : operator_proto_bufferWhen ;
185
- catch : operator_proto_catch ;
186
- combineAll : operator_proto_combineAll ;
187
- combineLatest : operator_proto_combineLatest ;
188
- concat : operator_proto_concat ;
189
- concatAll : operator_proto_concatAll ;
190
- concatMap : operator_proto_concatMap ;
191
- concatMapTo : operator_proto_concatMapTo ;
192
- count : operator_proto_count ;
193
- dematerialize : operator_proto_dematerialize ;
194
- debounce : operator_proto_debounce ;
195
- debounceTime : operator_proto_debounceTime ;
196
- defaultIfEmpty : operator_proto_defaultIfEmpty ;
197
- delay : operator_proto_delay ;
198
- distinctUntilChanged : operator_proto_distinctUntilChanged ;
199
- do : operator_proto_do ;
200
- expand : operator_proto_expand ;
201
- filter : operator_proto_filter ;
202
- finally : operator_proto_finally ;
203
- first : operator_proto_first ;
204
- flatMap : operator_proto_mergeMap ;
205
- flatMapTo : operator_proto_mergeMapTo ;
206
- groupBy : operator_proto_groupBy ;
207
- ignoreElements : operator_proto_ignoreElements ;
208
- last : operator_proto_last ;
209
- every : operator_proto_every ;
210
- map : operator_proto_map ;
211
- mapTo : operator_proto_mapTo ;
212
- materialize : operator_proto_materialize ;
213
- merge : operator_proto_merge ;
214
- mergeAll : operator_proto_mergeAll ;
215
- mergeMap : operator_proto_mergeMap ;
216
- mergeMapTo : operator_proto_mergeMapTo ;
217
- multicast : operator_proto_multicast ;
218
- observeOn : operator_proto_observeOn ;
219
- partition : operator_proto_partition ;
220
- publish : operator_proto_publish ;
221
- publishBehavior : operator_proto_publishBehavior ;
222
- publishReplay : operator_proto_publishReplay ;
223
- reduce : operator_proto_reduce ;
224
- repeat : operator_proto_repeat ;
225
- retry : operator_proto_retry ;
226
- retryWhen : operator_proto_retryWhen ;
227
- sample : operator_proto_sample ;
228
- sampleTime : operator_proto_sampleTime ;
229
- scan : operator_proto_scan ;
230
- share : operator_proto_share ;
231
- single : operator_proto_single ;
232
- skip : operator_proto_skip ;
233
- skipUntil : operator_proto_skipUntil ;
234
- startWith : operator_proto_startWith ;
235
- subscribeOn : operator_proto_subscribeOn ;
236
- switch : operator_proto_switch ;
237
- switchMap : operator_proto_switchMap ;
238
- switchMapTo : operator_proto_switchMapTo ;
239
- take : operator_proto_take ;
240
- takeUntil : operator_proto_takeUntil ;
241
- throttle : operator_proto_throttle ;
242
- throttleTime : operator_proto_throttleTime ;
243
- timeout : operator_proto_timeout ;
244
- timeoutWith : operator_proto_timeoutWith ;
245
- toArray : operator_proto_toArray ;
246
- toPromise : operator_proto_toPromise ;
247
- window : operator_proto_window ;
248
- windowCount : operator_proto_windowCount ;
249
- windowTime : operator_proto_windowTime ;
250
- windowToggle : operator_proto_windowToggle ;
251
- windowWhen : operator_proto_windowWhen ;
252
- withLatestFrom : operator_proto_withLatestFrom ;
253
- zip : operator_proto_zip ;
254
- zipAll : operator_proto_zipAll ;
180
+ buffer : operators . operator_proto_buffer < T > ;
181
+ bufferCount : operators . operator_proto_bufferCount < T > ;
182
+ bufferTime : operators . operator_proto_bufferTime < T > ;
183
+ bufferToggle : operators . operator_proto_bufferToggle < T > ;
184
+ bufferWhen : operators . operator_proto_bufferWhen < T > ;
185
+ catch : operators . operator_proto_catch < T > ;
186
+ combineAll : operators . operator_proto_combineAll < T > ;
187
+ combineLatest : operators . operator_proto_combineLatest < T > ;
188
+ concat : operators . operator_proto_concat < T > ;
189
+ concatAll : operators . operator_proto_concatAll < T > ;
190
+ concatMap : operators . operator_proto_concatMap < T > ;
191
+ concatMapTo : operators . operator_proto_concatMapTo < T > ;
192
+ count : operators . operator_proto_count < T > ;
193
+ dematerialize : operators . operator_proto_dematerialize < T > ;
194
+ debounce : operators . operator_proto_debounce < T > ;
195
+ debounceTime : operators . operator_proto_debounceTime < T > ;
196
+ defaultIfEmpty : operators . operator_proto_defaultIfEmpty < T > ;
197
+ delay : operators . operator_proto_delay < T > ;
198
+ distinctUntilChanged : operators . operator_proto_distinctUntilChanged < T > ;
199
+ do : operators . operator_proto_do < T > ;
200
+ expand : operators . operator_proto_expand < T > ;
201
+ filter : operators . operator_proto_filter < T > ;
202
+ finally : operators . operator_proto_finally < T > ;
203
+ first : operators . operator_proto_first < T > ;
204
+ flatMap : operators . operator_proto_mergeMap < T > ;
205
+ flatMapTo : operators . operator_proto_mergeMapTo < T > ;
206
+ groupBy : operators . operator_proto_groupBy < T > ;
207
+ ignoreElements : operators . operator_proto_ignoreElements < T > ;
208
+ last : operators . operator_proto_last < T > ;
209
+ every : operators . operator_proto_every < T > ;
210
+ map : operators . operator_proto_map < T > ;
211
+ mapTo : operators . operator_proto_mapTo < T > ;
212
+ materialize : operators . operator_proto_materialize < T > ;
213
+ merge : operators . operator_proto_merge < T > ;
214
+ mergeAll : operators . operator_proto_mergeAll < T > ;
215
+ mergeMap : operators . operator_proto_mergeMap < T > ;
216
+ mergeMapTo : operators . operator_proto_mergeMapTo < T > ;
217
+ multicast : operators . operator_proto_multicast < T > ;
218
+ observeOn : operators . operator_proto_observeOn < T > ;
219
+ partition : operators . operator_proto_partition < T > ;
220
+ publish : operators . operator_proto_publish < T > ;
221
+ publishBehavior : operators . operator_proto_publishBehavior < T > ;
222
+ publishReplay : operators . operator_proto_publishReplay < T > ;
223
+ reduce : operators . operator_proto_reduce < T > ;
224
+ repeat : operators . operator_proto_repeat < T > ;
225
+ retry : operators . operator_proto_retry < T > ;
226
+ retryWhen : operators . operator_proto_retryWhen < T > ;
227
+ sample : operators . operator_proto_sample < T > ;
228
+ sampleTime : operators . operator_proto_sampleTime < T > ;
229
+ scan : operators . operator_proto_scan < T > ;
230
+ share : operators . operator_proto_share < T > ;
231
+ single : operators . operator_proto_single < T > ;
232
+ skip : operators . operator_proto_skip < T > ;
233
+ skipUntil : operators . operator_proto_skipUntil < T > ;
234
+ startWith : operators . operator_proto_startWith < T > ;
235
+ subscribeOn : operators . operator_proto_subscribeOn < T > ;
236
+ switch : operators . operator_proto_switch < T > ;
237
+ switchMap : operators . operator_proto_switchMap < T > ;
238
+ switchMapTo : operators . operator_proto_switchMapTo < T > ;
239
+ take : operators . operator_proto_take < T > ;
240
+ takeUntil : operators . operator_proto_takeUntil < T > ;
241
+ throttle : operators . operator_proto_throttle < T > ;
242
+ throttleTime : operators . operator_proto_throttleTime < T > ;
243
+ timeout : operators . operator_proto_timeout < T > ;
244
+ timeoutWith : operators . operator_proto_timeoutWith < T > ;
245
+ toArray : operators . operator_proto_toArray < T > ;
246
+ toPromise : operators . operator_proto_toPromise < T > ;
247
+ window : operators . operator_proto_window < T > ;
248
+ windowCount : operators . operator_proto_windowCount < T > ;
249
+ windowTime : operators . operator_proto_windowTime < T > ;
250
+ windowToggle : operators . operator_proto_windowToggle < T > ;
251
+ windowWhen : operators . operator_proto_windowWhen < T > ;
252
+ withLatestFrom : operators . operator_proto_withLatestFrom < T > ;
253
+ zip : operators . operator_proto_zip < T > ;
254
+ zipAll : operators . operator_proto_zipAll < T > ;
255
255
}
256
-
0 commit comments