mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
fix(algoliasearch): camel case
[placeholders](https://www.algolia.com/doc/api-reference/api-parameters/placeholders/) [camelCaseAttributes](https://www.algolia.com/doc/api-reference/api-parameters/camelCaseAttributes/)
This commit is contained in:
@@ -94,7 +94,8 @@ let _algoliaIndexSettings: IndexSettings = {
|
||||
allowCompressionOfIntegerArray: false,
|
||||
altCorrections: [{}],
|
||||
minProximity: 0,
|
||||
placeholders: '',
|
||||
placeholders: { '': [''] },
|
||||
camelCaseAttributes: [''],
|
||||
};
|
||||
|
||||
let _algoliaQueryParameters: QueryParameters = {
|
||||
|
||||
12
types/algoliasearch/index.d.ts
vendored
12
types/algoliasearch/index.d.ts
vendored
@@ -1759,10 +1759,18 @@ declare namespace algoliasearch {
|
||||
minProximity?: number;
|
||||
/**
|
||||
* This is an advanced use-case to define a token substitutable by a list of words without having the original token searchable
|
||||
* default: ''
|
||||
* default: {}
|
||||
* https://github.com/algolia/algoliasearch-client-js#placeholders
|
||||
*/
|
||||
placeholders?: any;
|
||||
placeholders?: {
|
||||
[name: string]: string[],
|
||||
};
|
||||
/**
|
||||
* List of attributes on which to do a decomposition of camel case words.
|
||||
*
|
||||
https://www.algolia.com/doc/api-reference/api-parameters/camelCaseAttributes/
|
||||
*/
|
||||
camelCaseAttributes?: string[];
|
||||
}
|
||||
|
||||
interface Response {
|
||||
|
||||
Reference in New Issue
Block a user