Skip to content

Commit

Permalink
fix(combine): increase variadic type count to 10
Browse files Browse the repository at this point in the history
Expand CombineSignature interface to include up to ten variadic
types.
  • Loading branch information
Christian Johns committed Sep 23, 2016
1 parent 7a7cd64 commit b4fb52d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,44 @@ export interface CombineSignature {
s4: Stream<T4>,
s5: Stream<T5>,
s6: Stream<T6>): Stream<[T1, T2, T3, T4, T5, T6]>;
<T1, T2, T3, T4, T5, T6, T7>(
s1: Stream<T1>,
s2: Stream<T2>,
s3: Stream<T3>,
s4: Stream<T4>,
s5: Stream<T5>,
s6: Stream<T6>,
s7: Stream<T7>): Stream<[T1, T2, T3, T4, T5, T6, T7]>;
<T1, T2, T3, T4, T5, T6, T7, T8>(
s1: Stream<T1>,
s2: Stream<T2>,
s3: Stream<T3>,
s4: Stream<T4>,
s5: Stream<T5>,
s6: Stream<T6>,
s7: Stream<T7>,
s8: Stream<T8>): Stream<[T1, T2, T3, T4, T5, T6, T7, T8]>;
<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
s1: Stream<T1>,
s2: Stream<T2>,
s3: Stream<T3>,
s4: Stream<T4>,
s5: Stream<T5>,
s6: Stream<T6>,
s7: Stream<T7>,
s8: Stream<T8>,
s9: Stream<T9>): Stream<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
s1: Stream<T1>,
s2: Stream<T2>,
s3: Stream<T3>,
s4: Stream<T4>,
s5: Stream<T5>,
s6: Stream<T6>,
s7: Stream<T7>,
s8: Stream<T8>,
s9: Stream<T9>,
s10: Stream<T10>): Stream<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
(...stream: Array<Stream<any>>): Stream<Array<any>>;
}

Expand Down

0 comments on commit b4fb52d

Please sign in to comment.