Skip to content

Commit

Permalink
change any to generic type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hivesbee committed Dec 26, 2019
1 parent 0ecd872 commit b493d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ type CallbackResponseSpecFunc = (
config: AxiosRequestConfig
) => any[] | Promise<any[]>;

type ResponseSpecFunc = (
type ResponseSpecFunc = <T = any>(
statusOrCallback: number | CallbackResponseSpecFunc,
data?: any,
data?: T,
headers?: any
) => MockAdapter;

Expand Down

0 comments on commit b493d9c

Please # to comment.