@@ -119,15 +119,15 @@ export default class Handler {
119119    ) ; 
120120  } 
121121
122-   private  setChangerResponseData ( 
123-     responseChanger : ResponseChanger , 
122+   private  setChangerResponseData < T > ( 
123+     responseChanger : ResponseChanger < T > , 
124124    once  =  false , 
125125  )  { 
126126    const  verbConfig  =  this . verb ; 
127127    const  pathConfig  =  this . path ; 
128128    const  paramsConfig  =  this . params ; 
129129    const  interceptorId  =  this . scope . axios . interceptors . response . use ( 
130-       response  =>  { 
130+       ( response :  AxiosResponse < T > )  =>  { 
131131        if  ( matchResponse ( verbConfig ,  pathConfig ,  response ,  paramsConfig ) )  { 
132132          if  ( once )  ejectFromResponse ( this . scope . axios ,  interceptorId ) ; 
133133          response . data  =  responseChanger ( response . data ) ; 
@@ -167,13 +167,13 @@ export default class Handler {
167167    return  this ; 
168168  } 
169169
170-   changeResponseData ( changer : ResponseChanger )  { 
171-     this . setChangerResponseData ( changer ) ; 
170+   changeResponseData < T > ( changer : ResponseChanger < T > )  { 
171+     this . setChangerResponseData < T > ( changer ) ; 
172172    return  this ; 
173173  } 
174174
175-   changeResponseDataOnce ( changer : ResponseChanger )  { 
176-     this . setChangerResponseData ( changer ,  true ) ; 
175+   changeResponseDataOnce < T > ( changer : ResponseChanger < T > )  { 
176+     this . setChangerResponseData < T > ( changer ,  true ) ; 
177177    return  this ; 
178178  } 
179179} 
0 commit comments