diff --git a/src/Observable.ts b/src/Observable.ts index 79e6a904b1..4ce53f1c9a 100644 --- a/src/Observable.ts +++ b/src/Observable.ts @@ -147,7 +147,7 @@ export default class Observable implements CoreOperators { static of: (...values: (T | Scheduler)[]) => Observable; static range: (start: number, end: number, scheduler?: Scheduler) => Observable; static throw: (error: T) => Observable; - static timer: (delay: number) => Observable; + static timer: (dueTime: number, period?: number | Scheduler, scheduler?: Scheduler) => Observable; static zip: (...observables: (Observable | ((...values: Array) => T)) []) => Observable; ignoreElements: () => Observable; } \ No newline at end of file diff --git a/src/observables/TimerObservable.ts b/src/observables/TimerObservable.ts index 6fcce831d1..5a124e8446 100644 --- a/src/observables/TimerObservable.ts +++ b/src/observables/TimerObservable.ts @@ -5,7 +5,7 @@ import nextTick from '../schedulers/nextTick'; export default class TimerObservable extends Observable { - static create(dueTime: number = 0, period?: number | Scheduler, scheduler?: Scheduler) { + static create(dueTime: number = 0, period?: number | Scheduler, scheduler?: Scheduler): Observable { return new TimerObservable(dueTime, period, scheduler); }