Skip to content

Commit

Permalink
fix(map): fix typings for mapTo()
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Jun 8, 2017
1 parent 907edc3 commit 92f8ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operators/Map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ export const tap = curry(function <T> (mapFunction: (a: T) => void, source: IObs
export const mapTo = curry(function <T extends Function> (mapFunction: T, source: IObservable<T>) {
return new MapObservable(() => mapFunction, source)
}) as Function &
{<T> (mapper: TMapper<T, void>, source: TSource<T>): TResult<void>} &
{<T> (mapper: TMapper<T, void>): {(source: TSource<T>): TResult<void>}}
{<T> (value: T, source: IObservable<any>): IObservable<T>} &
{<T> (value: T): {(source: IObservable<any>): IObservable<T>}}

0 comments on commit 92f8ea3

Please sign in to comment.