@@ -8,28 +8,7 @@ import {toSubscriber} from './util/toSubscriber';
8
8
import { tryCatch } from './util/tryCatch' ;
9
9
import { errorObject } from './util/errorObject' ;
10
10
11
- import { combineLatestStatic } from './operator/combineLatest' ;
12
- import { concatStatic } from './operator/concat' ;
13
- import { mergeStatic } from './operator/merge' ;
14
- import { zipStatic } from './operator/zip' ;
15
- import { BoundCallbackObservable } from './observable/BoundCallbackObservable' ;
16
- import { BoundNodeCallbackObservable } from './observable/BoundNodeCallbackObservable' ;
17
- import { DeferObservable } from './observable/DeferObservable' ;
18
- import { EmptyObservable } from './observable/EmptyObservable' ;
19
- import { ForkJoinObservable } from './observable/ForkJoinObservable' ;
20
- import { FromObservable } from './observable/FromObservable' ;
21
- import { ArrayObservable } from './observable/ArrayObservable' ;
22
- import { FromEventObservable } from './observable/FromEventObservable' ;
23
- import { FromEventPatternObservable } from './observable/FromEventPatternObservable' ;
24
- import { PromiseObservable } from './observable/PromiseObservable' ;
25
- import { IntervalObservable } from './observable/IntervalObservable' ;
26
- import { TimerObservable } from './observable/TimerObservable' ;
27
- import { raceStatic } from './operator/race' ;
28
- import { RangeObservable } from './observable/RangeObservable' ;
29
- import { NeverObservable } from './observable/NeverObservable' ;
30
11
import { ErrorObservable } from './observable/ErrorObservable' ;
31
- import { AjaxCreationMethod } from './observable/dom/AjaxObservable' ;
32
- import { WebSocketSubject } from './observable/dom/WebSocketSubject' ;
33
12
34
13
export type ObservableOrPromise < T > = Observable < T > | Promise < T > ;
35
14
export type ArrayOrIterator < T > = Iterator < T > | ArrayLike < T > ;
@@ -159,30 +138,8 @@ export class Observable<T> {
159
138
return this . source . subscribe ( subscriber ) ;
160
139
}
161
140
162
- // static method stubs
163
- static ajax : AjaxCreationMethod ;
164
- static bindCallback : typeof BoundCallbackObservable . create ;
165
- static bindNodeCallback : typeof BoundNodeCallbackObservable . create ;
166
- static combineLatest : typeof combineLatestStatic ;
167
- static concat : typeof concatStatic ;
168
- static defer : typeof DeferObservable . create ;
169
- static empty : typeof EmptyObservable . create ;
170
- static forkJoin : typeof ForkJoinObservable . create ;
171
- static from : typeof FromObservable . create ;
172
- static fromArray : typeof ArrayObservable . create ;
173
- static fromEvent : typeof FromEventObservable . create ;
174
- static fromEventPattern : typeof FromEventPatternObservable . create ;
175
- static fromPromise : typeof PromiseObservable . create ;
176
- static interval : typeof IntervalObservable . create ;
177
- static merge : typeof mergeStatic ;
178
- static never : typeof NeverObservable . create ;
179
- static of : typeof ArrayObservable . of ;
180
- static race : typeof raceStatic ;
181
- static range : typeof RangeObservable . create ;
141
+ // Throw is the special snow flake, the compiler sees it as a reserved word
182
142
static throw : typeof ErrorObservable . create ;
183
- static timer : typeof TimerObservable . create ;
184
- static webSocket : typeof WebSocketSubject . create ;
185
- static zip : typeof zipStatic ;
186
143
187
144
/**
188
145
* @method Symbol.observable
0 commit comments