Skip to content

Commit

Permalink
feat: export ersi and algolia result types (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscofsales authored May 17, 2024
1 parent 555f153 commit d3c724b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/providers/algoliaProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AbstractProvider, {
SearchResult,
} from './provider';

interface RequestResult {
export interface RequestResult {
hits: RawResult[];
}

Expand All @@ -16,7 +16,7 @@ interface ValueMatch {
fullyHighlighted?: boolean;
}

interface RawResult {
export interface RawResult {
country: { [key: string]: string };
country_code: string;
city: { [key: string]: string[] };
Expand Down
4 changes: 2 additions & 2 deletions src/providers/esriProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3c724b

Please sign in to comment.