im using React and axios, recently i have created a custom config on axios like this:
import $axios from 'helpers/axiosInstance'
$axios.get('/customers', { handlerEnabled: false })
but the result ts compilation:
Argument of type '{ handlerEnabled: boolean; }' is not assignable to parameter of type 'AxiosRequestConfig'. Object literal may only specify known properties, and 'handlerEnabled' does not exist in type 'AxiosRequestConfig'.
how can i assign new types on AxiosRequestConfig?
something like this axios<AxiosRequestConfig & newType>
dont wanna use old method like .d.ts