Skip to content

Commit

Permalink
fix: explicit return type on public API
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jan 12, 2024
1 parent 08b587c commit 8123840
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion batchedAtomic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ export class BatchedAtomicOperation {
*
* By default, the batch size is `10` but can be supplied in the `options`
* property of `batchSize`. */
export function batchedAtomic(kv: Deno.Kv, options?: { batchSize?: number }) {
export function batchedAtomic(
kv: Deno.Kv,
options?: { batchSize?: number },
): BatchedAtomicOperation {
return new BatchedAtomicOperation(kv, options);
}

0 comments on commit 8123840

Please sign in to comment.