File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ class Indexes {
234234 * @memberof Documents
235235 * @method deleteDocument
236236 */
237- deleteDocument ( documentId : string ) : Promise < Types . AsyncUpdateId > {
237+ deleteDocument ( documentId : string | number ) : Promise < Types . AsyncUpdateId > {
238238 const url = `/indexes/${ this . indexUid } /documents/${ documentId } `
239239
240240 return this . instance . delete ( url )
@@ -245,7 +245,9 @@ class Indexes {
245245 * @memberof Documents
246246 * @method deleteDocuments
247247 */
248- deleteDocuments ( documentsIds : string [ ] ) : Promise < Types . AsyncUpdateId > {
248+ deleteDocuments (
249+ documentsIds : string [ ] | number [ ]
250+ ) : Promise < Types . AsyncUpdateId > {
249251 const url = `/indexes/${ this . indexUid } /documents/delete-batch`
250252
251253 return this . instance . post ( url , documentsIds )
@@ -289,7 +291,8 @@ class Indexes {
289291 }
290292
291293 /**
292- * Update all settings. Any parameters not provided will be left unchanged.
294+ * Update all settings.
295+ * Any parameters not provided will be left unchanged.
293296 * @memberof Settings
294297 * @method resetSettings
295298 */
You can’t perform that action at this time.
0 commit comments