fix(algolia): geo-search parameters type

This commit is contained in:
Dmin
2017-12-03 23:40:58 +09:00
parent 0128360a9d
commit f3d99a1766
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -121,12 +121,12 @@ let _algoliaQueryParameters: AlgoliaQueryParameters = {
disableTypoToleranceOnAttributes: '',
aroundLatLng: '',
aroundLatLngViaIP: '',
aroundRadius: '',
aroundRadius: 0,
aroundPrecision: 0,
minimumAroundRadius: 0,
insideBoundingBox: '',
insideBoundingBox: [[0]],
queryType: '',
insidePolygon: '',
insidePolygon: [[0]],
removeWordsIfNoResults: '',
advancedSyntax: false,
optionalWords: [''],
+3 -3
View File
@@ -1770,7 +1770,7 @@ Interface describing options available for gettings the logs
* You can specify aroundRadius=all if you want to compute the geo distance without filtering in a geo area
* https://github.com/algolia/algoliasearch-client-js#aroundradius
*/
aroundRadius?: any;
aroundRadius?: number | 'all';
/**
* Control the precision of a geo search
* default: null
@@ -1788,7 +1788,7 @@ Interface describing options available for gettings the logs
* default: null
* https://github.com/algolia/algoliasearch-client-js#insideboundingbox
*/
insideBoundingBox?: string;
insideBoundingBox?: number[][];
/**
* Selects how the query words are interpreted
* default: 'prefixLast'
@@ -1803,7 +1803,7 @@ Interface describing options available for gettings the logs
* defauly: ''
* https://github.com/algolia/algoliasearch-client-js#insidepolygon
*/
insidePolygon?: string;
insidePolygon?: number[][];
/**
* This option is used to select a strategy in order to avoid having an empty result page
* default: 'none'