Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export ersi and algolia result types #401

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
SearchResult,
} from './provider';

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

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

interface RawResult {
export interface RawResult {
country: { [key: string]: string };
country_code: string;
city: { [key: string]: string[] };
Expand Down Expand Up @@ -53,7 +53,7 @@
};
}

interface ProviderOptions {

Check warning on line 56 in src/providers/algoliaProvider.ts

View workflow job for this annotation

GitHub Actions / Eslint

'ProviderOptions' is defined but never used
key?: string;
[key: string]: string | boolean | number | undefined;
}
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
Loading