diff --git a/rx/rx-lite.d.ts b/rx/rx-lite.d.ts index c5034c3b7..3ea8c6ed8 100644 --- a/rx/rx-lite.d.ts +++ b/rx/rx-lite.d.ts @@ -481,7 +481,7 @@ declare module Rx { * @param [scheduler] Scheduler to run the enumeration of the input sequence on. * @returns The observable sequence whose elements are pulled from the given generator sequence. */ - fromItreable(generator: () => { next(): { done: boolean; value?: T; }; }, scheduler?: IScheduler): Observable; + fromIterable(generator: () => { next(): { done: boolean; value?: T; }; }, scheduler?: IScheduler): Observable; /** * Converts an iterable into an Observable sequence @@ -493,7 +493,7 @@ declare module Rx { * @param [scheduler] Scheduler to run the enumeration of the input sequence on. * @returns The observable sequence whose elements are pulled from the given generator sequence. */ - fromItreable(iterable: {}, scheduler?: IScheduler): Observable; // todo: can't describe ES6 Iterable via TypeScript type system + fromIterable(iterable: {}, scheduler?: IScheduler): Observable; // todo: can't describe ES6 Iterable via TypeScript type system generate(initialState: TState, condition: (state: TState) => boolean, iterate: (state: TState) => TState, resultSelector: (state: TState) => TResult, scheduler?: IScheduler): Observable; never(): Observable; @@ -625,11 +625,11 @@ declare module Rx { hasObservers(): boolean; } - export interface Subject extends ISubject { - } + export interface Subject extends ISubject { + } - interface SubjectStatic { - new (): Subject; + interface SubjectStatic { + new (): Subject; create(observer?: Observer, observable?: Observable): ISubject; }