// Type definitions for rx-lite-joinpatterns 4.0 // Project: https://github.com/Reactive-Extensions/RxJS // Definitions by: Igor Oleinikov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare namespace Rx { interface Pattern1 { and(other: Observable): Pattern2; thenDo(selector: (item1: T1) => TR): Plan; } interface Pattern2 { and(other: Observable): Pattern3; thenDo(selector: (item1: T1, item2: T2) => TR): Plan; } interface Pattern3 { and(other: Observable): Pattern4; thenDo(selector: (item1: T1, item2: T2, item3: T3) => TR): Plan; } interface Pattern4 { and(other: Observable): Pattern5; thenDo(selector: (item1: T1, item2: T2, item3: T3, item4: T4) => TR): Plan; } interface Pattern5 { and(other: Observable): Pattern6; thenDo(selector: (item1: T1, item2: T2, item3: T3, item4: T4, item5: T5) => TR): Plan; } interface Pattern6 { and(other: Observable): Pattern7; thenDo(selector: (item1: T1, item2: T2, item3: T3, item4: T4, item5: T5, item6: T6) => TR): Plan; } interface Pattern7 { and(other: Observable): Pattern8; thenDo(selector: (item1: T1, item2: T2, item3: T3, item4: T4, item5: T5, item6: T6, item7: T7) => TR): Plan; } interface Pattern8 { and(other: Observable): Pattern9; thenDo(selector: (item1: T1, item2: T2, item3: T3, item4: T4, item5: T5, item6: T6, item7: T7, item8: T8) => TR): Plan; } interface Pattern9 { thenDo(selector: (item1: T1, item2: T2, item3: T3, item4: T4, item5: T5, item6: T6, item7: T7, item8: T8, item9: T9) => TR): Plan; } interface Plan { } interface Observable { and(other: Observable): Pattern2; thenDo(selector: (item1: T) => TR): Plan; } interface ObservableStatic { when(plan: Plan): Observable; } } declare module "rx-lite-joinpatterns" { export = Rx; }