Skip to content

Commit

Permalink
add lang param to RadarAutocompleteUI
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspk06 committed Oct 3, 2024
1 parent cd95c21 commit d0f1160
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,17 +548,12 @@ export interface RadarPolygonOptions {
'border-opacity'?: number;
},
}
export interface RadarAutocompleteUIOptions {
export interface RadarAutocompleteUIOptions extends Omit<RadarAutocompleteParams, 'query'> {
container: string | HTMLElement;
near?: string | Location; // bias for location results
debounceMS?: number, // Debounce time in milliseconds
threshold?: number, // DEPRECATED(use minCharacters instead)
/** @deprecated use minCharacters instead */
threshold?: number,
minCharacters?: number, // Minimum number of characters to trigger autocomplete
limit?: number, // Maximum number of autocomplete results
layers?: RadarGeocodeLayer[];
countryCode?: string;
expandUnits?: boolean;
mailable?: boolean;
placeholder?: string, // Placeholder text for the input field
onSelection?: (selection: any) => void,
onRequest?: (params: RadarAutocompleteParams) => void,
Expand All @@ -574,7 +569,6 @@ export interface RadarAutocompleteUIOptions {
}

export interface RadarAutocompleteConfig extends RadarAutocompleteUIOptions {
container: string | HTMLElement;
debounceMS: number, // Debounce time in milliseconds
threshold: number, // DEPRECATED(use minCharacters instead)
minCharacters: number, // Minimum number of characters to trigger autocomplete
Expand Down

0 comments on commit d0f1160

Please sign in to comment.