diff --git a/src/providers/algoliaProvider.ts b/src/providers/algoliaProvider.ts index d37269a36..262f918f2 100644 --- a/src/providers/algoliaProvider.ts +++ b/src/providers/algoliaProvider.ts @@ -5,7 +5,7 @@ import AbstractProvider, { SearchResult, } from './provider'; -interface RequestResult { +export interface RequestResult { hits: RawResult[]; } @@ -16,7 +16,7 @@ interface ValueMatch { fullyHighlighted?: boolean; } -interface RawResult { +export interface RawResult { country: { [key: string]: string }; country_code: string; city: { [key: string]: string[] }; diff --git a/src/providers/esriProvider.ts b/src/providers/esriProvider.ts index 3816b7233..7fe96e372 100644 --- a/src/providers/esriProvider.ts +++ b/src/providers/esriProvider.ts @@ -4,12 +4,12 @@ import AbstractProvider, { SearchResult, } from './provider'; -interface RequestResult { +export interface RequestResult { spatialReference: { wkid: number; latestWkid: number }; locations: RawResult[]; } -interface RawResult { +export interface RawResult { name: string; extent: { xmin: number;