Here is the code
const fetcher = Axios.create()
fetcher.interceptors.response.use(config=>{
return config.data
})
Problem is
Type of fetcher.get('...')
is AxiosInstance, but it’s actually AxiosInstance.data type
So how could I change the type correctly?
You can try this one as in this
EX: if it’s returning a number
It is not necessary to redefine the module.
Assuming your interceptor does
response => response.data
and a server response like:This should be enough:
100 no deposit bonus codes free las vegas slot machines vegas casino free slot games slots online free
faxless payday loan payday loan reviews direct loan