axios-mock-adapter
axios-mock-adapter copied to clipboard
Callbacks with typescript are very confusing
Callback looks like this:
type CallbackResponseSpecFunc = (
config: AxiosRequestConfig
) => unknown[] | Promise<unknown[]>;
It tells nothing about what needs to be inside the array. Only by reading the readme i figured it out how to use.