-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(patches): move static observable stubs from Observable.ts to…
… patch files
- Loading branch information
1 parent
d99289f
commit a979cdf
Showing
25 changed files
with
164 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {BoundCallbackObservable} from '../../observable/BoundCallbackObservable'; | ||
|
||
Observable.bindCallback = BoundCallbackObservable.create; | ||
Observable.bindCallback = BoundCallbackObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let bindCallback: typeof BoundCallbackObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {BoundNodeCallbackObservable} from '../../observable/BoundNodeCallbackObservable'; | ||
|
||
Observable.bindNodeCallback = BoundNodeCallbackObservable.create; | ||
Observable.bindNodeCallback = BoundNodeCallbackObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let bindNodeCallback: typeof BoundNodeCallbackObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {combineLatestStatic} from '../../operator/combineLatest'; | ||
|
||
Observable.combineLatest = combineLatestStatic; | ||
Observable.combineLatest = combineLatestStatic; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let combineLatest: typeof combineLatestStatic; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
import {Observable} from '../../Observable'; | ||
import {concatStatic} from '../../operator/concat'; | ||
|
||
Observable.concat = concatStatic; | ||
Observable.concat = concatStatic; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let concat: typeof concatStatic; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {DeferObservable} from '../../observable/DeferObservable'; | ||
|
||
Observable.defer = DeferObservable.create; | ||
Observable.defer = DeferObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let defer: typeof DeferObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
import {Observable} from '../../../Observable'; | ||
import {AjaxObservable} from '../../../observable/dom/AjaxObservable'; | ||
|
||
Observable.ajax = AjaxObservable.create; | ||
Observable.ajax = AjaxObservable.create; | ||
|
||
declare module '../../../Observable' { | ||
namespace Observable { | ||
export let ajax: typeof AjaxObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
import {Observable} from '../../../Observable'; | ||
import {WebSocketSubject} from '../../../observable/dom/WebSocketSubject'; | ||
|
||
Observable.webSocket = WebSocketSubject.create; | ||
Observable.webSocket = WebSocketSubject.create; | ||
|
||
declare module '../../../Observable' { | ||
namespace Observable { | ||
export let webSocket: typeof WebSocketSubject.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {EmptyObservable} from '../../observable/EmptyObservable'; | ||
|
||
Observable.empty = EmptyObservable.create; | ||
Observable.empty = EmptyObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let empty: typeof EmptyObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {ForkJoinObservable} from '../../observable/ForkJoinObservable'; | ||
|
||
Observable.forkJoin = ForkJoinObservable.create; | ||
Observable.forkJoin = ForkJoinObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let forkJoin: typeof ForkJoinObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {FromObservable} from '../../observable/FromObservable'; | ||
|
||
Observable.from = FromObservable.create; | ||
Observable.from = FromObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let from: typeof FromObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import {Observable} from '../../Observable'; | ||
import {ArrayObservable} from '../../observable/ArrayObservable'; | ||
import './of'; | ||
|
||
Observable.fromArray = ArrayObservable.create; | ||
Observable.of = ArrayObservable.of; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let fromArray: typeof ArrayObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {FromEventObservable} from '../../observable/FromEventObservable'; | ||
|
||
Observable.fromEvent = FromEventObservable.create; | ||
Observable.fromEvent = FromEventObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let fromEvent: typeof FromEventObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {FromEventPatternObservable} from '../../observable/FromEventPatternObservable'; | ||
|
||
Observable.fromEventPattern = FromEventPatternObservable.create; | ||
Observable.fromEventPattern = FromEventPatternObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let fromEventPattern: typeof FromEventPatternObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {PromiseObservable} from '../../observable/PromiseObservable'; | ||
|
||
Observable.fromPromise = PromiseObservable.create; | ||
Observable.fromPromise = PromiseObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let fromPromise: typeof PromiseObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {IntervalObservable} from '../../observable/IntervalObservable'; | ||
|
||
Observable.interval = IntervalObservable.create; | ||
Observable.interval = IntervalObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let interval: typeof IntervalObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
import {Observable} from '../../Observable'; | ||
import {mergeStatic} from '../../operator/merge'; | ||
|
||
Observable.merge = mergeStatic; | ||
Observable.merge = mergeStatic; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let merge: typeof mergeStatic; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {NeverObservable} from '../../observable/NeverObservable'; | ||
|
||
Observable.never = NeverObservable.create; | ||
Observable.never = NeverObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let never: typeof NeverObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {ArrayObservable} from '../../observable/ArrayObservable'; | ||
|
||
Observable.of = ArrayObservable.of; | ||
Observable.of = ArrayObservable.of; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let of: typeof ArrayObservable.of; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {raceStatic} from '../../operator/race'; | ||
|
||
Observable.race = raceStatic; | ||
Observable.race = raceStatic; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let race: typeof raceStatic; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {RangeObservable} from '../../observable/RangeObservable'; | ||
|
||
Observable.range = RangeObservable.create; | ||
Observable.range = RangeObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let range: typeof RangeObservable.create; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {Observable} from '../../Observable'; | ||
import {TimerObservable} from '../../observable/TimerObservable'; | ||
|
||
Observable.timer = TimerObservable.create; | ||
Observable.timer = TimerObservable.create; | ||
|
||
declare module '../../Observable' { | ||
namespace Observable { | ||
export let timer: typeof TimerObservable.create; | ||
} | ||
} |
Oops, something went wrong.