Skip to content

Commit

Permalink
fix: mark options argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vaakian committed Jan 5, 2024
1 parent 87feac9 commit d1a81e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface Task<Key, Result> {

export function createPBatch<T, K>(
batchFn: BatchFn<T, K>,
options: BatchOptions,
options: BatchOptions = {},
) {
const {
maxBatchSize: initialMaxBatchSize = Infinity,
Expand Down

0 comments on commit d1a81e8

Please sign in to comment.