Skip to content

Commit

Permalink
feat(compat): add Observable extension classes with static create()
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonaden committed Apr 6, 2018
1 parent 4566001 commit ecd7f68
Show file tree
Hide file tree
Showing 48 changed files with 270 additions and 3 deletions.
7 changes: 7 additions & 0 deletions compat/observable/ArrayLikeObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, from } from 'rxjs';

export class ArrayLikeObservable<T> extends Observable<T> {
static create<T>(arrayLike: ArrayLike<T>, scheduler?: SchedulerLike): Observable<T> {
return from(arrayLike, scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/ArrayObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, from } from 'rxjs';

export class ArrayObservable<T> extends Observable<T> {
static create<T>(array: T[], scheduler?: SchedulerLike) {
return from(array, scheduler);
}
}
28 changes: 28 additions & 0 deletions compat/observable/BoundCallbackObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Observable, SchedulerLike, bindCallback } from 'rxjs';

export class BoundCallbackObservable<T> extends Observable<T> {
/* tslint:disable:max-line-length */
static create(callbackFunc: (callback: () => any) => any, selector?: void, scheduler?: SchedulerLike): () => Observable<void>;
static create<R>(callbackFunc: (callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): () => Observable<R>;
static create<T, R>(callbackFunc: (v1: T, callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T) => Observable<R>;
static create<T, T2, R>(callbackFunc: (v1: T, v2: T2, callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2) => Observable<R>;
static create<T, T2, T3, R>(callbackFunc: (v1: T, v2: T2, v3: T3, callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3) => Observable<R>;
static create<T, T2, T3, T4, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4) => Observable<R>;
static create<T, T2, T3, T4, T5, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => Observable<R>;
static create<T, T2, T3, T4, T5, T6, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, callback: (result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => Observable<R>;
static create<R>(callbackFunc: (callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): () => Observable<R>;
static create<T, R>(callbackFunc: (v1: T, callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): (v1: T) => Observable<R>;
static create<T, T2, R>(callbackFunc: (v1: T, v2: T2, callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): (v1: T, v2: T2) => Observable<R>;
static create<T, T2, T3, R>(callbackFunc: (v1: T, v2: T2, v3: T3, callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3) => Observable<R>;
static create<T, T2, T3, T4, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4) => Observable<R>;
static create<T, T2, T3, T4, T5, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => Observable<R>;
static create<T, T2, T3, T4, T5, T6, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, callback: (...args: any[]) => any) => any, selector: (...args: any[]) => R, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => Observable<R>;
static create<T>(callbackFunc: Function, selector?: void, scheduler?: SchedulerLike): (...args: any[]) => Observable<T>;
static create<T>(callbackFunc: Function, selector?: (...args: any[]) => T, scheduler?: SchedulerLike): (...args: any[]) => Observable<T>;
/* tslint:enable:max-line-length */
static create<T>(func: Function,
selector: Function | void = undefined,
scheduler?: SchedulerLike): (...args: any[]) => Observable<T> {
return bindCallback(func, <any>selector, scheduler);
}
}
20 changes: 20 additions & 0 deletions compat/observable/BoundNodeCallbackObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Observable, SchedulerLike, bindNodeCallback } from 'rxjs';

export class BoundNodeCallbackObservable<T> extends Observable<T> {
/* tslint:disable:max-line-length */
static create<R>(callbackFunc: (callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): () => Observable<R>;
static create<T, R>(callbackFunc: (v1: T, callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T) => Observable<R>;
static create<T, T2, R>(callbackFunc: (v1: T, v2: T2, callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2) => Observable<R>;
static create<T, T2, T3, R>(callbackFunc: (v1: T, v2: T2, v3: T3, callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3) => Observable<R>;
static create<T, T2, T3, T4, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4) => Observable<R>;
static create<T, T2, T3, T4, T5, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => Observable<R>;
static create<T, T2, T3, T4, T5, T6, R>(callbackFunc: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, callback: (err: any, result: R) => any) => any, selector?: void, scheduler?: SchedulerLike): (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => Observable<R>;
static create<T>(callbackFunc: Function, selector?: void, scheduler?: SchedulerLike): (...args: any[]) => Observable<T>;
static create<T>(callbackFunc: Function, selector?: (...args: any[]) => T, scheduler?: SchedulerLike): (...args: any[]) => Observable<T>;
/* tslint:enable:max-line-length */
static create<T>(func: Function,
selector: Function | void = undefined,
scheduler?: SchedulerLike): (...args: any[]) => Observable<T> {
return bindNodeCallback(func, <any>selector, scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/DeferObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SubscribableOrPromise, defer } from 'rxjs';

export class DeferObservable<T> extends Observable<T> {
static create<T>(observableFactory: () => SubscribableOrPromise<T> | void): Observable<T> {
return defer(observableFactory);
}
}
7 changes: 7 additions & 0 deletions compat/observable/EmptyObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, empty } from 'rxjs';

export class EmptyObservable<T> extends Observable<T> {
static create<T>(scheduler?: SchedulerLike): Observable<T> {
return empty(scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/ErrorObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, throwError } from 'rxjs';

export class ErrorObservable<T> extends Observable<T> {
static create<T>(error: any, scheduler?: SchedulerLike) {
return throwError(error, scheduler);
}
}
29 changes: 29 additions & 0 deletions compat/observable/ForkJoinObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Observable, SubscribableOrPromise, forkJoin } from 'rxjs';

export class ForkJoinObservable<T> extends Observable<T> {
/* tslint:disable:max-line-length */
static create<T, T2>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>): Observable<[T, T2]>;
static create<T, T2, T3>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>): Observable<[T, T2, T3]>;
static create<T, T2, T3, T4>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>): Observable<[T, T2, T3, T4]>;
static create<T, T2, T3, T4, T5>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>): Observable<[T, T2, T3, T4, T5]>;
static create<T, T2, T3, T4, T5, T6>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>, v6: SubscribableOrPromise<T6>): Observable<[T, T2, T3, T4, T5, T6]>;
static create<T, R>(v1: SubscribableOrPromise<T>, project: (v1: T) => R): Observable<R>;
static create<T, T2, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, project: (v1: T, v2: T2) => R): Observable<R>;
static create<T, T2, T3, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, project: (v1: T, v2: T2, v3: T3) => R): Observable<R>;
static create<T, T2, T3, T4, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): Observable<R>;
static create<T, T2, T3, T4, T5, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): Observable<R>;
static create<T, T2, T3, T4, T5, T6, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>, v6: SubscribableOrPromise<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): Observable<R>;
static create<T>(sources: SubscribableOrPromise<T>[]): Observable<T[]>;
static create<R>(sources: SubscribableOrPromise<any>[]): Observable<R>;
static create<T, R>(sources: SubscribableOrPromise<T>[], project: (...values: Array<T>) => R): Observable<R>;
static create<R>(sources: SubscribableOrPromise<any>[], project: (...values: Array<any>) => R): Observable<R>;
static create<T>(...sources: SubscribableOrPromise<T>[]): Observable<T[]>;
static create<R>(...sources: SubscribableOrPromise<any>[]): Observable<R>;
/* tslint:enable:max-line-length */

static create<T>(...sources: Array<SubscribableOrPromise<any> |
Array<SubscribableOrPromise<any>> |
((...values: Array<any>) => any)>): Observable<T> {
return forkJoin(...sources);
}
}
18 changes: 18 additions & 0 deletions compat/observable/FromEventObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Observable, fromEvent } from 'rxjs';
import { EventTargetLike } from 'rxjs/internal-compatibility';

export class FromEventObservable<T> extends Observable<T> {
/* tslint:disable:max-line-length */
static create<T>(target: EventTargetLike, eventName: string): Observable<T>;
static create<T>(target: EventTargetLike, eventName: string, selector: ((...args: any[]) => T)): Observable<T>;
static create<T>(target: EventTargetLike, eventName: string, options: EventListenerOptions): Observable<T>;
static create<T>(target: EventTargetLike, eventName: string, options: EventListenerOptions, selector: ((...args: any[]) => T)): Observable<T>;
/* tslint:enable:max-line-length */

static create<T>(target: EventTargetLike,
eventName: string,
options?: EventListenerOptions | ((...args: any[]) => T),
selector?: ((...args: any[]) => T)): Observable<T> {
return fromEvent(target, eventName, options as EventListenerOptions, selector);
}
}
9 changes: 9 additions & 0 deletions compat/observable/FromEventPatternObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Observable, fromEventPattern } from 'rxjs';

export class FromEventPatternObservable<T> extends Observable<T> {
static create<T>(addHandler: (handler: Function) => any,
removeHandler?: (handler: Function, signal?: any) => void,
selector?: (...args: Array<any>) => T) {
return fromEventPattern(addHandler, removeHandler, selector);
}
}
9 changes: 9 additions & 0 deletions compat/observable/FromObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Observable, ObservableInput, SchedulerLike, from } from 'rxjs';

export class FromObservable<T> extends Observable<T> {
static create<T>(ish: ObservableInput<T>, scheduler?: SchedulerLike): Observable<T>;
static create<T, R>(ish: ArrayLike<T>, scheduler?: SchedulerLike): Observable<R>;
static create<T>(ish: ObservableInput<T>, scheduler?: SchedulerLike): Observable<T> {
return from(ish, scheduler);
}
}
19 changes: 19 additions & 0 deletions compat/observable/GenerateObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Observable, SchedulerLike, generate } from 'rxjs';
import { ConditionFunc, IterateFunc, ResultFunc, GenerateBaseOptions, GenerateOptions } from 'rxjs/internal-compatibility';

export class GenerateObservable<T> extends Observable<T> {
/* tslint:disable:max-line-length */
static create<T, S>(initialState: S, condition: ConditionFunc<S>, iterate: IterateFunc<S>, resultSelector: ResultFunc<S, T>, scheduler?: SchedulerLike): Observable<T>;
static create<S>(initialState: S, condition: ConditionFunc<S>, iterate: IterateFunc<S>, scheduler?: SchedulerLike): Observable<S>;
static create<S>(options: GenerateBaseOptions<S>): Observable<S>;
static create<T, S>(options: GenerateOptions<T, S>): Observable<T>;
/* tslint:enable:max-line-length */

static create<T, S>(initialStateOrOptions: S | GenerateOptions<T, S>,
condition?: ConditionFunc<S>,
iterate?: IterateFunc<S>,
resultSelectorOrObservable?: (ResultFunc<S, T>) | SchedulerLike,
scheduler?: SchedulerLike): Observable<T> {
return generate(<S>initialStateOrOptions, condition, iterate, <ResultFunc<S, T>>resultSelectorOrObservable, scheduler);
}
}
9 changes: 9 additions & 0 deletions compat/observable/IfObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Observable, SubscribableOrPromise, iif } from 'rxjs';

export class IfObservable<T> extends Observable<T> {
static create<T, R>(condition: () => boolean | void,
thenSource?: SubscribableOrPromise<T> | void,
elseSource?: SubscribableOrPromise<R> | void): Observable<T|R> {
return iif(<() => boolean>condition, <SubscribableOrPromise<T>>thenSource, <SubscribableOrPromise<R>>elseSource);
}
}
8 changes: 8 additions & 0 deletions compat/observable/IntervalObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Observable, SchedulerLike, asyncScheduler, interval } from 'rxjs';

export class IntervalObservable<T> extends Observable<T> {
static create(period: number = 0,
scheduler: SchedulerLike = asyncScheduler): Observable<number> {
return interval(period, scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/IteratorObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, from } from 'rxjs';

export class IteratorObservable<T> extends Observable<T> {
static create<T>(iterator: any, scheduler?: SchedulerLike) {
return from<T>(iterator, scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/NeverObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, NEVER } from 'rxjs';

export class NeverObservable<T> extends Observable<T> {
static create<T>() {
return NEVER;
}
}
7 changes: 7 additions & 0 deletions compat/observable/PairsObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, pairs } from 'rxjs';

export class PairsObservable<T> extends Observable<T> {
static create<T>(obj: Object, scheduler?: SchedulerLike): Observable<(string | T)[]> {
return pairs(obj, scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/PromiseObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, from } from 'rxjs';

export class PromiseObservable<T> extends Observable<T> {
static create<T>(promise: PromiseLike<T>, scheduler?: SchedulerLike): Observable<T> {
return from(promise, scheduler);
}
}
9 changes: 9 additions & 0 deletions compat/observable/RangeObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Observable, SchedulerLike, range } from 'rxjs';

export class RangeObservable<T> extends Observable<T> {
static create(start: number = 0,
count: number = 0,
scheduler?: SchedulerLike): Observable<number> {
return range(start, count, scheduler);
}
}
7 changes: 7 additions & 0 deletions compat/observable/ScalarObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable, SchedulerLike, of } from 'rxjs';

export class ScalarObservable<T> extends Observable<T> {
static create<T>(value: T, scheduler?: SchedulerLike) {
return arguments.length > 1 ? of(value, scheduler) : of(value);
}
}
9 changes: 9 additions & 0 deletions compat/observable/TimerObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Observable, SchedulerLike, timer } from 'rxjs';

export class TimerObservable<T> extends Observable<T> {
static create(initialDelay: number | Date = 0,
period?: number | SchedulerLike,
scheduler?: SchedulerLike): Observable<number> {
return timer(initialDelay, period, scheduler);
}
}
8 changes: 8 additions & 0 deletions compat/observable/UsingObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Observable, Unsubscribable, SubscribableOrPromise, using } from 'rxjs';

export class UsingObservable<T> extends Observable<T> {
static create<T>(resourceFactory: () => Unsubscribable | void,
observableFactory: (resource: Unsubscribable | void) => SubscribableOrPromise<T> | void): Observable<T> {
return using(resourceFactory, observableFactory);
}
}
1 change: 0 additions & 1 deletion compat/observable/fromObservable.ts

This file was deleted.

1 change: 1 addition & 0 deletions legacy-reexport/observable/ArrayLikeObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/ArrayLikeObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/ArrayObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/ArrayObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/BoundCallbackObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/BoundCallbackObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/BoundNodeCallbackObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/BoundNodeCallbackObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/DeferObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/DeferObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/EmptyObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/EmptyObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/ErrorObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/ErrorObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/ForkJoinObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/ForkJoinObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/FromEventObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/FromEventObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/FromEventPatternObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/FromEventPatternObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/FromObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/FromObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/GenerateObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/GenerateObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/IfObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/IfObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/IntervalObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/IntervalObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/IteratorObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/IteratorObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/NeverObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/NeverObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/PairsObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/PairsObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/PromiseObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/PromiseObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/RangeObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/RangeObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/ScalarObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/ScalarObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/TimerObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/TimerObservable';
1 change: 1 addition & 0 deletions legacy-reexport/observable/UsingObservable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'rxjs-compat/observable/UsingObservable';
1 change: 0 additions & 1 deletion legacy-reexport/observable/fromObservable.ts

This file was deleted.

2 changes: 1 addition & 1 deletion spec/observables/ScalarObservable-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import * as Rx from 'rxjs/Rx';
import { scalar } from 'rxjs/observable/scalar';
import { of as scalar } from 'rxjs';

declare const rxTestScheduler: Rx.TestScheduler;

Expand Down
2 changes: 2 additions & 0 deletions src/internal-compatibility/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export { AjaxRequest, AjaxCreationMethod, ajaxGet, ajaxPost, ajaxDelete, ajaxPut
AjaxObservable, AjaxSubscriber, AjaxResponse, AjaxError, AjaxTimeoutError } from '../internal/observable/dom/AjaxObservable';
export { WebSocketSubjectConfig, WebSocketSubject } from '../internal/observable/dom/WebSocketSubject';
export { CombineLatestOperator } from '../internal/observable/combineLatest';
export { EventTargetLike } from '../internal/observable/fromEvent';
export { ConditionFunc, IterateFunc, ResultFunc, GenerateBaseOptions, GenerateOptions } from '../internal/observable/generate';
export { dispatch } from '../internal/observable/range';
export { SubscribeOnObservable } from '../internal/observable/SubscribeOnObservable';

Expand Down

0 comments on commit ecd7f68

Please sign in to comment.