googlemaps / googlemaps/google-maps-services-js
TypeScript error in Request interfaces
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 654
- Avg merge
- 3m
- Merged PRs (30d)
- 4
Description
Now request interfaces like `DistanceMatrixRequest`, `GeocodeRequest` extends `AxiosRequestConfig` 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.
```
interface IKeyOmittedGeocodeRequest extends Omit {
params: Omit, 'key'>;
}
```
But as `GeocodeRequest` extends `AxiosRequestConfig` which has params, `TypeScript` recognizes params in `IKeyOmittedGoecodeRequest` from `AxiosRequestConfig` which is any.
And it doesn't recognize `request.params.destinations`.

Contributor guide
Assessment
This issue has not been assessed yet.