fix(algolia): batch has multiple "action"s (#22539)

* fix(algolia): batch has multiple "action"s

* chore: increment version
This commit is contained in:
Haroen Viaene
2018-01-02 21:22:00 +01:00
committed by Mohamed Hegazy
parent 1fef13d890
commit d1debdf859

View File

@@ -1,4 +1,4 @@
// Type definitions for algoliasearch-client-js 3.24.6
// Type definitions for algoliasearch-client-js 3.24.8
// Project: https://github.com/algolia/algoliasearch-client-js
// Definitions by: Baptiste Coquelle <https://github.com/cbaptiste>
// Haroen Viaene <https://github.com/haroenv>
@@ -192,14 +192,14 @@ declare namespace algoliasearch {
* @param cb(err, res)
* https://github.com/algolia/algoliasearch-client-js#custom-batch---batch
*/
batch(action: AlgoliaAction, cb: (err: Error, res: any) => void): void;
batch(action: AlgoliaAction[], cb: (err: Error, res: any) => void): void;
/**
* Perform multiple operations with one API call to reduce latency
* @param action
* return {Promise}
* https://github.com/algolia/algoliasearch-client-js#custom-batch---batch
*/
batch(action: AlgoliaAction): Promise<any>;
batch(action: AlgoliaAction[]): Promise<any>;
/**
* Lists global API Keys
* @param cb(err, res)