diff --git a/src/presets/cloudflare/runtime/cloudflare-module.ts b/src/presets/cloudflare/runtime/cloudflare-module.ts index c84a625f40..785176bc1f 100644 --- a/src/presets/cloudflare/runtime/cloudflare-module.ts +++ b/src/presets/cloudflare/runtime/cloudflare-module.ts @@ -112,7 +112,7 @@ export default { }, queue( - event: CloudflareEmailContext, + event: CloudflareMessageBatch, env: CFModuleEnv, context: ExecutionContext ) { diff --git a/src/presets/cloudflare/types.ts b/src/presets/cloudflare/types.ts index 1edc926141..e87682ab7b 100644 --- a/src/presets/cloudflare/types.ts +++ b/src/presets/cloudflare/types.ts @@ -57,7 +57,7 @@ export interface CloudflareEmailContext { readonly from?: string; readonly to?: string; readonly headers?: Headers; - readonly raw?: ReadableStream; + readonly raw?: ReadableStream; readonly rawSize?: number; setReject?(reason: string): void; @@ -92,7 +92,7 @@ declare module "nitropack/types" { context: ExecutionContext; }) => void; "cloudflare:queue": (_: { - event: CloudflareEmailContext; + event: CloudflareMessageBatch; env: any; context: ExecutionContext; }) => void;