Skip to content

Commit

Permalink
Add LocalsExt interface (#1114)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
  • Loading branch information
Nathan Huisman and ryansolid authored Nov 6, 2023
1 parent ebdfe7e commit 4339dde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/start/server/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ declare global {
}
}

export interface LocalsExt {}

export interface FetchEvent {
request: Request;
httpServer?: Server;
env: Env;
fetch(url: string, init?: RequestInit): Promise<Response>;
clientAddress: string;
locals: Record<string, unknown>;
locals: Record<string, unknown> & LocalsExt;
}

export interface ServerFunctionEvent extends FetchEvent {
Expand Down

0 comments on commit 4339dde

Please sign in to comment.