Skip to content

Commit 72b78f8

Browse files
fix incorrect type
1 parent 04cf758 commit 72b78f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cloudflare/src/api/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ export function defineCloudflareConfig(options: CloudflareConfigOptions = {}): O
8383

8484
function resolveOverride<T extends IncrementalCache | TagCache | Queue>(
8585
value: T | (() => T | Promise<T>) | undefined
86-
): (() => T | Promise<T>) | "dummy" {
86+
): (() => Promise<T>) | "dummy" {
8787
if (!value) {
8888
return "dummy";
8989
}
9090

9191
if (typeof value === "function") {
92-
return () => value();
92+
return async () => value();
9393
}
9494

9595
return async () => value;

0 commit comments

Comments
 (0)