pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.08k stars 1.6k forks source link

Fix GET overload with config not typed #772

Open devTeaa opened 1 year ago

devTeaa commented 1 year ago

The http get params not getting properly typed because of the 2nd params on first overload is assigned with any

Vue.http.get('something', { params: { foo: 'Foo' } }) // <-- the object is read as any

expected

Vue.http.get('something', { params: { foo: 'Foo' } }) // <-- the object should have autocomplete config