Skip to content

Commit

Permalink
fix(range): fix type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgabriel authored and benlesh committed Oct 12, 2015
1 parent 9c238c0 commit 9237d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class Observable<T> implements CoreOperators<T> {
static merge: (...observables:any[]) => Observable<any>;
static never: <T>() => Observable<T>;
static of: <T>(...values: (T | Scheduler)[]) => Observable<T>;
static range: <T>(start: number, end: number, scheduler?: Scheduler) => Observable<number>;
static range: (start: number, end: number, scheduler?: Scheduler) => Observable<number>;
static throw: <T>(error: T) => Observable<T>;
static timer: (dueTime: number, period?: number | Scheduler, scheduler?: Scheduler) => Observable<number>;
static zip: <T>(...observables: (Observable<any> | ((...values: Array<any>) => T)) []) => Observable<T>;
Expand Down
2 changes: 1 addition & 1 deletion src/observables/RangeObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Observable from '../Observable';

export default class RangeObservable<T> extends Observable<T> {

static create(start: number = 0, end: number = 0, scheduler?: Scheduler) {
static create(start: number = 0, end: number = 0, scheduler?: Scheduler): Observable<number> {
return new RangeObservable(start, end, scheduler);
}

Expand Down

0 comments on commit 9237d0b

Please sign in to comment.