Skip to content

Commit 4339dde

Browse files
Nathan Huismanryansolid
andauthored
Add LocalsExt interface (#1114)
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 parent ebdfe7e commit 4339dde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/start/server/types.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ declare global {
7474
}
7575
}
7676

77+
export interface LocalsExt {}
78+
7779
export interface FetchEvent {
7880
request: Request;
7981
httpServer?: Server;
8082
env: Env;
8183
fetch(url: string, init?: RequestInit): Promise<Response>;
8284
clientAddress: string;
83-
locals: Record<string, unknown>;
85+
locals: Record<string, unknown> & LocalsExt;
8486
}
8587

8688
export interface ServerFunctionEvent extends FetchEvent {

0 commit comments

Comments
 (0)