Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 59b3f55

Browse files
authored
Add passThroughOnException() to Pages Functions (#314)
1 parent c0de39a commit 59b3f55

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/four-pandas-poke.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-types": patch
3+
---
4+
5+
feat: Add `passThroughOnException()` to Pages Functions

manual-ts/pages.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type EventContext<Env, P extends string, Data> = {
44
request: Request;
55
functionPath: string;
66
waitUntil: (promise: Promise<any>) => void;
7+
passThroughOnException: () => void;
78
next: (input?: Request | string, init?: RequestInit) => Promise<Response>;
89
env: Env & { ASSETS: { fetch: typeof fetch } };
910
params: Params<P>;
@@ -20,6 +21,7 @@ type EventPluginContext<Env, P extends string, Data, PluginArgs> = {
2021
request: Request;
2122
functionPath: string;
2223
waitUntil: (promise: Promise<any>) => void;
24+
passThroughOnException: () => void;
2325
next: (input?: Request | string, init?: RequestInit) => Promise<Response>;
2426
env: Env & { ASSETS: { fetch: typeof fetch } };
2527
params: Params<P>;

0 commit comments

Comments
 (0)