mirror of
https://github.com/jlengrand/leaflet-geosearch.git
synced 2026-03-10 08:31:26 +00:00
fix type error in bing provider
This commit is contained in:
@@ -68,7 +68,7 @@ export default class BingProvider extends AbstractProvider<RequestResult, RawRes
|
||||
|
||||
async search({ query }: SearchArgument): Promise<SearchResult<RawResult>[]> {
|
||||
const jsonp = `BING_JSONP_CB_${Date.now()}`;
|
||||
const json = await createScriptElement(this.endpoint({ query, jsonp }), jsonp);
|
||||
const json = await createScriptElement<RequestResult>(this.endpoint({ query, jsonp }), jsonp);
|
||||
|
||||
return this.parse({ data: json });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user