Search: use 'searchbar' where applicable, refactoring
This commit is contained in:
parent
bcd53405c8
commit
9b8c300e77
28 changed files with 403 additions and 582 deletions
|
@ -56,16 +56,16 @@ export interface GeocodingOptions {
|
|||
}
|
||||
|
||||
|
||||
export default interface GeocodingProvider {
|
||||
export default interface GeocodingProvider<T extends SearchResult = SearchResult> {
|
||||
|
||||
|
||||
search(query: string, options?: GeocodingOptions): Promise<SearchResult[]>
|
||||
search(query: string, options?: GeocodingOptions): Promise<T[]>
|
||||
|
||||
/**
|
||||
* @param query
|
||||
* @param options
|
||||
*/
|
||||
suggest?(query: string, options?: GeocodingOptions): Store<SearchResult[]>
|
||||
suggest?(query: string, options?: GeocodingOptions): Store<T[]>
|
||||
}
|
||||
|
||||
export type ReverseGeocodingResult = Feature<Geometry, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue