@@ -631,44 +631,44 @@ export type Operator<Input = void, Output = Input> = IOperator<
631631 Output
632632>
633633
634- export function pipe < Config extends Configuration , A , B > (
635- aOperator : IOperator < Config , A , B >
636- ) : IOperator < Config , A , B >
637-
638- export function pipe < Config extends Configuration , A , B , C > (
639- aOperator : IOperator < Config , A , B > ,
640- bOperator : IOperator < Config , B , C >
641- ) : IOperator < Config , A , C >
642-
643- export function pipe < Config extends Configuration , A , B , C , D > (
644- aOperator : IOperator < Config , A , B > ,
645- bOperator : IOperator < Config , B , C > ,
646- cOperator : IOperator < Config , C , D >
647- ) : IOperator < Config , A , D >
648-
649- export function pipe < Config extends Configuration , A , B , C , D , E > (
650- aOperator : IOperator < Config , A , B > ,
651- bOperator : IOperator < Config , B , C > ,
652- cOperator : IOperator < Config , C , D > ,
653- dOperator : IOperator < Config , D , E >
654- ) : IOperator < Config , A , E >
655-
656- export function pipe < Config extends Configuration , A , B , C , D , E , F > (
657- aOperator : IOperator < Config , A , B > ,
658- bOperator : IOperator < Config , B , C > ,
659- cOperator : IOperator < Config , C , D > ,
660- dOperator : IOperator < Config , D , E > ,
661- eOperator : IOperator < Config , E , F >
662- ) : IOperator < Config , A , F >
663-
664- export function pipe < Config extends Configuration , A , B , C , D , E , F , G > (
665- aOperator : IOperator < Config , A , B > ,
666- bOperator : IOperator < Config , B , C > ,
667- cOperator : IOperator < Config , C , D > ,
668- dOperator : IOperator < Config , D , E > ,
669- eOperator : IOperator < Config , E , F > ,
670- fOperator : IOperator < Config , F , G >
671- ) : IOperator < Config , A , G >
634+ export function pipe < ThisConfig extends Configuration , A , B > (
635+ aOperator : IOperator < ThisConfig , A , B >
636+ ) : IOperator < ThisConfig , A , B >
637+
638+ export function pipe < ThisConfig extends Configuration , A , B , C > (
639+ aOperator : IOperator < ThisConfig , A , B > ,
640+ bOperator : IOperator < ThisConfig , B , C >
641+ ) : IOperator < ThisConfig , A , C >
642+
643+ export function pipe < ThisConfig extends Configuration , A , B , C , D > (
644+ aOperator : IOperator < ThisConfig , A , B > ,
645+ bOperator : IOperator < ThisConfig , B , C > ,
646+ cOperator : IOperator < ThisConfig , C , D >
647+ ) : IOperator < ThisConfig , A , D >
648+
649+ export function pipe < ThisConfig extends Configuration , A , B , C , D , E > (
650+ aOperator : IOperator < ThisConfig , A , B > ,
651+ bOperator : IOperator < ThisConfig , B , C > ,
652+ cOperator : IOperator < ThisConfig , C , D > ,
653+ dOperator : IOperator < ThisConfig , D , E >
654+ ) : IOperator < ThisConfig , A , E >
655+
656+ export function pipe < ThisConfig extends Configuration , A , B , C , D , E , F > (
657+ aOperator : IOperator < ThisConfig , A , B > ,
658+ bOperator : IOperator < ThisConfig , B , C > ,
659+ cOperator : IOperator < ThisConfig , C , D > ,
660+ dOperator : IOperator < ThisConfig , D , E > ,
661+ eOperator : IOperator < ThisConfig , E , F >
662+ ) : IOperator < ThisConfig , A , F >
663+
664+ export function pipe < ThisConfig extends Configuration , A , B , C , D , E , F , G > (
665+ aOperator : IOperator < ThisConfig , A , B > ,
666+ bOperator : IOperator < ThisConfig , B , C > ,
667+ cOperator : IOperator < ThisConfig , C , D > ,
668+ dOperator : IOperator < ThisConfig , D , E > ,
669+ eOperator : IOperator < ThisConfig , E , F > ,
670+ fOperator : IOperator < ThisConfig , F , G >
671+ ) : IOperator < ThisConfig , A , G >
672672
673673export function pipe ( ...operators ) {
674674 const instance = ( err , context , next , final = next ) => {
@@ -810,9 +810,9 @@ function createNextPath(next) {
810810 }
811811}
812812
813- export function map < Input , Output , Config extends Configuration = Config > (
814- operation : ( input : TValueContext < Config , Input > ) => Output
815- ) : IOperator < Config , Input , Output extends Promise < infer U > ? U : Output > {
813+ export function map < Input , Output , ThisConfig extends Configuration = Config > (
814+ operation : ( input : TValueContext < ThisConfig , Input > ) => Output
815+ ) : IOperator < ThisConfig , Input , Output extends Promise < infer U > ? U : Output > {
816816 const instance = ( err , context , next ) => {
817817 if ( err ) next ( err )
818818 else {
@@ -829,10 +829,10 @@ export function map<Input, Output, Config extends Configuration = Config>(
829829
830830export function forEach <
831831 Input extends any [ ] ,
832- Config extends Configuration = Config
832+ ThisConfig extends Configuration = Config
833833> (
834- forEachItemOperator : IOperator < Config , Input [ 0 ] , any >
835- ) : IOperator < Config , Input , Input > {
834+ forEachItemOperator : IOperator < ThisConfig , Input [ 0 ] , any >
835+ ) : IOperator < ThisConfig , Input , Input > {
836836 const instance = ( err , context , next ) => {
837837 if ( err ) next ( err )
838838 else {
@@ -873,9 +873,9 @@ export function forEach<
873873 return instance
874874}
875875
876- export function parallel < Input , Config extends Configuration = Config > (
877- ...operators : IOperator < Config , Input > [ ]
878- ) : IOperator < Config , Input , Input > {
876+ export function parallel < Input , ThisConfig extends Configuration = Config > (
877+ ...operators : IOperator < ThisConfig , Input > [ ]
878+ ) : IOperator < ThisConfig , Input , Input > {
879879 const instance = ( err , context , next ) => {
880880 if ( err ) next ( err )
881881 else {
@@ -915,9 +915,9 @@ export function parallel<Input, Config extends Configuration = Config>(
915915 return instance
916916}
917917
918- export function filter < Input , Config extends Configuration = Config > (
919- operation : ( input : TValueContext < Config , Input > ) => boolean
920- ) : IOperator < Config , Input , Input > {
918+ export function filter < Input , ThisConfig extends Configuration = Config > (
919+ operation : ( input : TValueContext < ThisConfig , Input > ) => boolean
920+ ) : IOperator < ThisConfig , Input , Input > {
921921 const instance = ( err , context , next , final ) => {
922922 if ( err ) next ( err )
923923 else {
@@ -936,9 +936,9 @@ export function filter<Input, Config extends Configuration = Config>(
936936 return instance
937937}
938938
939- export function action < Input , Config extends Configuration = Config > (
940- operation : ( input : TValueContext < Config , Input > ) => void
941- ) : IOperator < Config , Input , Input > {
939+ export function action < Input , ThisConfig extends Configuration = Config > (
940+ operation : ( input : TValueContext < ThisConfig , Input > ) => void
941+ ) : IOperator < ThisConfig , Input , Input > {
942942 const instance = ( err , context , next ) => {
943943 if ( err ) next ( err )
944944 else {
@@ -994,12 +994,12 @@ export function action<Input, Config extends Configuration = Config>(
994994
995995export function fork <
996996 Input ,
997- Paths extends { [ key : string ] : IOperator < Config , Input , any > } ,
998- Config extends Configuration = Config
997+ Paths extends { [ key : string ] : IOperator < ThisConfig , Input , any > } ,
998+ ThisConfig extends Configuration = Config
999999> (
1000- operation : ( input : TValueContext < Config , Input > ) => keyof Paths ,
1000+ operation : ( input : TValueContext < ThisConfig , Input > ) => keyof Paths ,
10011001 paths : Paths
1002- ) : IOperator < Config , Input , Input > {
1002+ ) : IOperator < ThisConfig , Input , Input > {
10031003 const instance = ( err , context , next ) => {
10041004 if ( err ) next ( err )
10051005 else {
@@ -1029,14 +1029,14 @@ export function when<
10291029 Input ,
10301030 OutputA ,
10311031 OutputB ,
1032- Config extends Configuration = Config
1032+ ThisConfig extends Configuration = Config
10331033> (
1034- operation : ( input : TValueContext < Config , Input > ) => boolean ,
1034+ operation : ( input : TValueContext < ThisConfig , Input > ) => boolean ,
10351035 paths : {
1036- true : IOperator < Config , Input , OutputA >
1037- false : IOperator < Config , Input , OutputB >
1036+ true : IOperator < ThisConfig , Input , OutputA >
1037+ false : IOperator < ThisConfig , Input , OutputB >
10381038 }
1039- ) : IOperator < Config , Input , OutputA | OutputB > {
1039+ ) : IOperator < ThisConfig , Input , OutputA | OutputB > {
10401040 const instance = ( err , context , next ) => {
10411041 if ( err ) next ( err )
10421042 else {
@@ -1067,9 +1067,9 @@ export function when<
10671067 return instance
10681068}
10691069
1070- export function wait < Input , Config extends Configuration = Config > (
1070+ export function wait < Input , ThisConfig extends Configuration = Config > (
10711071 ms : number
1072- ) : IOperator < Config , Input , Input > {
1072+ ) : IOperator < ThisConfig , Input , Input > {
10731073 const instance = ( err , context , next ) => {
10741074 if ( err ) next ( err )
10751075 else {
@@ -1085,9 +1085,9 @@ export function wait<Input, Config extends Configuration = Config>(
10851085 return instance
10861086}
10871087
1088- export function debounce < Input , Config extends Configuration = Config > (
1088+ export function debounce < Input , ThisConfig extends Configuration = Config > (
10891089 ms : number
1090- ) : IOperator < Config , Input , Input > {
1090+ ) : IOperator < ThisConfig , Input , Input > {
10911091 let timeout
10921092 let previousFinal
10931093 const instance = ( err , context , next , final ) => {
0 commit comments