Open StanislavHT opened 4 months ago
I think all request interfaces should inherit Omit<Partial<AxiosRequestConfig>, 'params'>
@StanislavHT Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
google-maps
tagThis is an automated message, feel free to ignore.
Now request interfaces like
DistanceMatrixRequest
,GeocodeRequest
extendsAxiosRequestConfig
which has params (type: any).In my case I just want to omit key from request params because we set key globally, so I defined following interface.
But as
GeocodeRequest
extendsAxiosRequestConfig
which has params,TypeScript
recognizes params inIKeyOmittedGoecodeRequest
fromAxiosRequestConfig
which is any. And it doesn't recognizerequest.params.destinations
.