diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index 49e66d2b59..c56b0f8a9f 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -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 // Haroen Viaene @@ -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; + batch(action: AlgoliaAction[]): Promise; /** * Lists global API Keys * @param cb(err, res)