@@ -102,17 +102,17 @@ declare namespace JawgPlaces {
102
102
*/
103
103
interface BoudaryOptions {
104
104
/**
105
- * Add a restriction by alpha-2 or alpha-3 ISO-3166 country code.
105
+ * Add a restriction by alpha-2 or alpha-3 ISO-3166 country code. Countries can be static or dynamic with the function.
106
106
*/
107
- countries : string [ ] | string ;
107
+ countries : string [ ] | string | ( ( ) => string [ ] ) | ( ( ) => string ) ;
108
108
/**
109
- * Search within a circular region.
109
+ * Search within a circular region. Circle can be static or dynamic with the function.
110
110
*/
111
- circle : CircleOptions ;
111
+ circle : CircleOptions | ( ( ) => CircleOptions ) ;
112
112
/**
113
- * Search within a rectangular region.
113
+ * Search within a rectangular region. Rectangle can be static or dynamic with the function.
114
114
*/
115
- rectangle : RectangleOptions ;
115
+ rectangle : RectangleOptions | ( ( ) => RectangleOptions ) ;
116
116
}
117
117
118
118
/**
@@ -170,8 +170,9 @@ declare namespace JawgPlaces {
170
170
/**
171
171
* Return results in a specific language using [BCP47 standard](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) (e.g 'en', 'fr', 'de', ...).
172
172
* By default, we use HTTP Header set by the browser and English when not present.
173
+ * Language can be static or dynamic with the function.
173
174
*/
174
- language ?: string ;
175
+ language ?: string | ( ( ) => string ) ;
175
176
/**
176
177
* Set this to `true` to activate search on typing, this will also use `autocomplete` search.
177
178
* Default value is `false`, you will need to press `Enter` to validate your search.
@@ -192,13 +193,13 @@ declare namespace JawgPlaces {
192
193
*/
193
194
debounceDelay ?: number ;
194
195
/**
195
- * Filter the kind of place you want to find.
196
+ * Filter the kind of place you want to find. Layers can be static or dynamic with the function.
196
197
*/
197
- layers ?: Layer [ ] | Layer ;
198
+ layers ?: Layer [ ] | Layer | ( ( ) => Layer ) | ( ( ) => Layer [ ] ) ;
198
199
/**
199
- * Filter the originating source of the data.
200
+ * Filter the originating source of the data. Sources can be static or dynamic with the function.
200
201
*/
201
- sources ?: Source [ ] | Source ;
202
+ sources ?: Source [ ] | Source | ( ( ) => Source [ ] ) | ( ( ) => Source ) ;
202
203
/**
203
204
* Sort results in part by their proximity to the given coordinate. Coordinates can be static or dynamic with the function.
204
205
*/
0 commit comments