From 80a724180ecfa443975211c72cfdbb4118aaafb4 Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Tue, 1 Nov 2022 14:36:32 +0000 Subject: [PATCH] Add `passThroughOnException()` to Pages Functions --- .changeset/four-pandas-poke.md | 5 +++++ manual-ts/pages.d.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/four-pandas-poke.md diff --git a/.changeset/four-pandas-poke.md b/.changeset/four-pandas-poke.md new file mode 100644 index 00000000..8b23582f --- /dev/null +++ b/.changeset/four-pandas-poke.md @@ -0,0 +1,5 @@ +--- +"@cloudflare/workers-types": patch +--- + +feat: Add `passThroughOnException()` to Pages Functions diff --git a/manual-ts/pages.d.ts b/manual-ts/pages.d.ts index a73a2cd9..2518b48e 100644 --- a/manual-ts/pages.d.ts +++ b/manual-ts/pages.d.ts @@ -4,6 +4,7 @@ type EventContext = { request: Request; functionPath: string; waitUntil: (promise: Promise) => void; + passThroughOnException: () => void; next: (input?: Request | string, init?: RequestInit) => Promise; env: Env & { ASSETS: { fetch: typeof fetch } }; params: Params

; @@ -20,6 +21,7 @@ type EventPluginContext = { request: Request; functionPath: string; waitUntil: (promise: Promise) => void; + passThroughOnException: () => void; next: (input?: Request | string, init?: RequestInit) => Promise; env: Env & { ASSETS: { fetch: typeof fetch } }; params: Params

;