@@ -14,28 +14,7 @@ import {toSubscriber} from './util/toSubscriber';
14
14
import { tryCatch } from './util/tryCatch' ;
15
15
import { errorObject } from './util/errorObject' ;
16
16
17
- import { combineLatestStatic } from './operator/combineLatest' ;
18
- import { concatStatic } from './operator/concat' ;
19
- import { mergeStatic } from './operator/merge' ;
20
- import { zipStatic } from './operator/zip' ;
21
- import { BoundCallbackObservable } from './observable/BoundCallbackObservable' ;
22
- import { BoundNodeCallbackObservable } from './observable/BoundNodeCallbackObservable' ;
23
- import { DeferObservable } from './observable/DeferObservable' ;
24
- import { EmptyObservable } from './observable/EmptyObservable' ;
25
- import { ForkJoinObservable } from './observable/ForkJoinObservable' ;
26
- import { FromObservable } from './observable/FromObservable' ;
27
- import { ArrayObservable } from './observable/ArrayObservable' ;
28
- import { FromEventObservable } from './observable/FromEventObservable' ;
29
- import { FromEventPatternObservable } from './observable/FromEventPatternObservable' ;
30
- import { PromiseObservable } from './observable/PromiseObservable' ;
31
- import { IntervalObservable } from './observable/IntervalObservable' ;
32
- import { TimerObservable } from './observable/TimerObservable' ;
33
- import { raceStatic } from './operator/race' ;
34
- import { RangeObservable } from './observable/RangeObservable' ;
35
- import { NeverObservable } from './observable/NeverObservable' ;
36
17
import { ErrorObservable } from './observable/ErrorObservable' ;
37
- import { AjaxCreationMethod } from './observable/dom/AjaxObservable' ;
38
- import { WebSocketSubject } from './observable/dom/WebSocketSubject' ;
39
18
40
19
import { CombineLatestSignature } from './operator/combineLatest' ;
41
20
@@ -167,30 +146,8 @@ export class Observable<T> implements CoreOperators<T> {
167
146
return this . source . subscribe ( subscriber ) ;
168
147
}
169
148
170
- // static method stubs
171
- static ajax : AjaxCreationMethod ;
172
- static bindCallback : typeof BoundCallbackObservable . create ;
173
- static bindNodeCallback : typeof BoundNodeCallbackObservable . create ;
174
- static combineLatest : typeof combineLatestStatic ;
175
- static concat : typeof concatStatic ;
176
- static defer : typeof DeferObservable . create ;
177
- static empty : typeof EmptyObservable . create ;
178
- static forkJoin : typeof ForkJoinObservable . create ;
179
- static from : typeof FromObservable . create ;
180
- static fromArray : typeof ArrayObservable . create ;
181
- static fromEvent : typeof FromEventObservable . create ;
182
- static fromEventPattern : typeof FromEventPatternObservable . create ;
183
- static fromPromise : typeof PromiseObservable . create ;
184
- static interval : typeof IntervalObservable . create ;
185
- static merge : typeof mergeStatic ;
186
- static never : typeof NeverObservable . create ;
187
- static of : typeof ArrayObservable . of ;
188
- static race : typeof raceStatic ;
189
- static range : typeof RangeObservable . create ;
149
+ // Throw is the special snow flake, the compiler sees it as a reserved word
190
150
static throw : typeof ErrorObservable . create ;
191
- static timer : typeof TimerObservable . create ;
192
- static webSocket : typeof WebSocketSubject . create ;
193
- static zip : typeof zipStatic ;
194
151
195
152
// core operators
196
153
buffer : ( closingNotifier : Observable < any > ) => Observable < T [ ] > ;
0 commit comments