File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ declare namespace LightMyRequest {
9797 payload : ( payload : InjectPayload ) => Chain
9898 query : ( query : object ) => Chain
9999 cookies : ( query : object ) => Chain
100- end : ( callback ?: CallbackFunc ) => Chain | Promise < Response >
100+ end : ( callback ?: CallbackFunc ) => Promise < Response >
101101 }
102102}
103103
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ inject(dispatch)
7272 } )
7373
7474expectType < Chain > ( inject ( dispatch ) )
75+ expectType < Promise < Response > > ( inject ( dispatch ) . end ( ) )
7576expectType < Chain > ( inject ( dispatch , { method : 'get' , url : '/' } ) )
7677// @ts -ignore tsd supports top-level await, but normal ts does not so ignore
7778expectType < Response > ( await inject ( dispatch , { method : 'get' , url : '/' } ) )
You can’t perform that action at this time.
0 commit comments