Skip to content

Commit d4a5d4b

Browse files
fix async still being treated as optional
1 parent 51d6619 commit d4a5d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cloudflare/src/api/cloudflare-context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ export function getCloudflareContext<
6565
export function getCloudflareContext<
6666
CfProperties extends Record<string, unknown> = IncomingRequestCfProperties,
6767
Context = ExecutionContext,
68-
>(options?: { async?: false }): CloudflareContext<CfProperties, Context>;
68+
>(options?: { async: false }): CloudflareContext<CfProperties, Context>;
6969
export function getCloudflareContext<
7070
CfProperties extends Record<string, unknown> = IncomingRequestCfProperties,
7171
Context = ExecutionContext,
7272
>(
73-
options: GetCloudflareContextOptions = {}
73+
options: GetCloudflareContextOptions = { async: false }
7474
): CloudflareContext<CfProperties, Context> | Promise<CloudflareContext<CfProperties, Context>> {
7575
const global = globalThis as InternalGlobalThis<CfProperties, Context>;
7676

0 commit comments

Comments
 (0)