Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rannn505 committed Jul 3, 2020
1 parent 2236dae commit 147fc9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Expand Up @@ -16,13 +16,13 @@ type Options = Partial<{
}>;

export type AxiosMiddleware = {
default: (client: AxiosInstance, customMiddleWareOptions: Options, customClientOptions: any) => any;
default: (client: AxiosInstance, customMiddleWareOptions?: Options, customClientOptions?: any) => any;
getActionTypes: (action: any) => any;
multiClientMiddleware: (client: any, customMiddleWareOptions: Options) => any;
multiClientMiddleware: (client: any, customMiddleWareOptions?: Options) => any;
(client: AxiosInstance, customMiddleWareOptions?: Options, customClientOptions?: any): any;
}

type Client = { client: AxiosInstance, options: Options };
type Client = { client: AxiosInstance, options?: Options };

export type ClientsList = {
[name: string]: Client;
Expand Down

0 comments on commit 147fc9c

Please sign in to comment.