Skip to content

Commit

Permalink
fix(Observable.prototype.pipe): TS typings now more correct for >8 pa…
Browse files Browse the repository at this point in the history
…rameters (#3789)

Added <any, any>[] as tyings for the generic type of operators provided to the pipe, as
OperatorFunctions can transform the type.

3766
  • Loading branch information
akehir authored and benlesh committed Jun 5, 2018
1 parent 80ceea0 commit ad010ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export class Observable<T> implements Subscribable<T> {
pipe<A, B, C, D, E, F, G>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>): Observable<G>;
pipe<A, B, C, D, E, F, G, H>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>): Observable<H>;
pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>): Observable<I>;
pipe<R>(...operations: OperatorFunction<T, R>[]): Observable<R>;
pipe<R>(...operations: OperatorFunction<any, any>[]): Observable<R>;
/* tslint:enable:max-line-length */

/**
Expand Down

0 comments on commit ad010ea

Please sign in to comment.