Skip to content

Commit

Permalink
fix ReactiveX#5557: add identity overload to pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Raiondesu committed Feb 4, 2021
1 parent 705cd33 commit 1856088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/util/pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { identity } from './identity';
import { UnaryFunction } from '../types';

/* tslint:disable:max-line-length */
export function pipe(): typeof identity;
export function pipe<T>(...fns: UnaryFunction<T, T>[]): UnaryFunction<T, T>;
export function pipe<T, A>(fn1: UnaryFunction<T, A>, ...fns: UnaryFunction<A, A>[]): UnaryFunction<T, A>;
export function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, ...fns: UnaryFunction<B, B>[]): UnaryFunction<T, B>;
Expand Down

0 comments on commit 1856088

Please sign in to comment.