File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,14 @@ export type Payload<T extends Request, Check = false> = Check extends true
4242 : _AnyKeyValue < ReturnType < T > , "_payload" > ;
4343export type BodyData < T extends Request > = _AnyKeyValue < ReturnType < T > , "data" > ;
4444
45- export interface RequestFactory < T extends Request > {
46- ( ...args : Parameters < T > ) : {
47- cancel : Canceler ;
48- ready : ( ) => Promise < readonly [ Payload < T , true > , Payload < T > ] > ;
49- } ;
50- }
45+ export type RequestFactory < T extends Request > = ( ...args : Parameters < T > ) => {
46+ cancel : Canceler ;
47+ ready : ( ) => Promise < readonly [ Payload < T , true > , Payload < T > ] > ;
48+ } ;
5149
52- export interface RequestDispatcher < T extends Request > {
53- ( ...args : Parameters < T > ) : Canceler ;
54- }
50+ export type RequestDispatcher < T extends Request > = (
51+ ...args : Parameters < T >
52+ ) => Canceler ;
5553
5654/**
5755 * Normalize the error response returned from `@axios-use/vue`
You can’t perform that action at this time.
0 commit comments