From 4c335cc28a095e681db76f54027cfd8101396804 Mon Sep 17 00:00:00 2001 From: Darren Date: Tue, 21 Feb 2023 12:21:42 +0000 Subject: [PATCH] Update Helpers.d.ts change type of datasource to ``` datasource: TDocument[] | Buffer | ReadableStream | AsyncIterable; ``` --- lib/Helpers.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Helpers.d.ts b/lib/Helpers.d.ts index 88b315edb..74479d185 100644 --- a/lib/Helpers.d.ts +++ b/lib/Helpers.d.ts @@ -116,7 +116,7 @@ type Action = IndexAction | CreateAction | UpdateAction | DeleteAction; type Omit = Pick>; export interface BulkHelperOptions extends Omit { - datasource: TDocument[] | Buffer | ReadableStream | AsyncIterator; + datasource: TDocument[] | Buffer | ReadableStream | AsyncIterable; onDocument: (doc: TDocument) => Action; flushBytes?: number; flushInterval?: number;