Skip to content

Commit ad12506

Browse files
committed
feat(JawgPlaces): add options minLength and debounceDelay
1 parent b9a8ee5 commit ad12506

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jawg/types",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Shared TypeScript definitions for Jawg Maps projects",
55
"types": "./index.d.ts",
66
"typeScriptVersion": "2.3",

src/places-js.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,20 @@ declare namespace JawgPlaces {
172172
* Default value is `false`, you will need to press `Enter` to validate your search.
173173
*/
174174
searchOnTyping?: boolean;
175+
/**
176+
* Set the minimum number of characters to trigger a geocoding request.
177+
* If you press `Enter` the search will be validated even if the length is not reached.
178+
* This option work only when `searchOnTyping=true`.
179+
* Default value is `0`.
180+
*/
181+
minLength?: number;
182+
/**
183+
* Set the number of milliseconds to wait before a search validation.
184+
* If you press `Enter` the search will be immediately validated.
185+
* This option work only when `searchOnTyping=true`.
186+
* Default value is `350`.
187+
*/
188+
debounceDelay?: number;
175189
/**
176190
* Filter the kind of place you want to find.
177191
*/

0 commit comments

Comments
 (0)