From d1a81e83752dcc1ffeb7fad14b56649430eccadb Mon Sep 17 00:00:00 2001 From: vaakian Date: Sat, 6 Jan 2024 01:53:37 +0800 Subject: [PATCH] fix: mark `options` argument optional --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 64ea8ef..98f8f87 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ interface Task { export function createPBatch( batchFn: BatchFn, - options: BatchOptions, + options: BatchOptions = {}, ) { const { maxBatchSize: initialMaxBatchSize = Infinity,