Skip to content

Commit 2cf8428

Browse files
committed
make params optional
1 parent 788f799 commit 2cf8428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/flushIfServerless.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function flushWithTimeout(timeout: number): Promise<void> {
3737
export async function flushIfServerless(
3838
params: // eslint-disable-next-line @typescript-eslint/no-explicit-any
3939
| { timeout?: number; cloudflareWaitUntil?: (task: Promise<any>) => void }
40-
| { timeout?: number; cloudflareCtx?: MinimalCloudflareContext },
40+
| { timeout?: number; cloudflareCtx?: MinimalCloudflareContext } = {},
4141
): Promise<void> {
4242
const { timeout = 2000 } = params;
4343

0 commit comments

Comments
 (0)