Skip to content

Commit

Permalink
Fixed types for array parameters (DefinitelyTyped#23011)
Browse files Browse the repository at this point in the history
The old version was using a tuple rather than an array parameter for batch adds and updates
  • Loading branch information
jineshshah36 authored and weswigham committed Jan 18, 2018
1 parent f65c838 commit e8779a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/algoliasearch/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ declare namespace algoliasearch {
* @param cb(err, res)
* https://github.com/algolia/algoliasearch-client-js#add-objects---addobjects
*/
addObjects(objects: [{}], cb: (err: Error, res: any) => void): void;
addObjects(objects: {}[], cb: (err: Error, res: any) => void): void;
/**
* Add or replace a specific object
* @param object
Expand Down Expand Up @@ -405,7 +405,7 @@ declare namespace algoliasearch {
* https://github.com/algolia/algoliasearch-client-js#update-objects---saveobjects
*/
partialUpdateObjects(
objects: [{}],
objects: {}[],
cb: (err: Error, res: any) => void
): void;
/**
Expand Down

0 comments on commit e8779a8

Please sign in to comment.