diff --git a/src/Typesense/Document.ts b/src/Typesense/Document.ts index dc98c10..684fc6f 100644 --- a/src/Typesense/Document.ts +++ b/src/Typesense/Document.ts @@ -1,6 +1,7 @@ import ApiCall from "./ApiCall"; import Collections from "./Collections"; import Documents, { + DeleteQuery, DocumentSchema, DocumentWriteParameters, } from "./Documents"; @@ -16,8 +17,8 @@ export class Document { return this.apiCall.get(this.endpointPath()); } - async delete(): Promise { - return this.apiCall.delete(this.endpointPath()); + async delete(options?: DeleteQuery): Promise { + return this.apiCall.delete(this.endpointPath(), options); } async update(