diff --git a/packages/start/server/types.tsx b/packages/start/server/types.tsx index feb685df7..39571ae62 100644 --- a/packages/start/server/types.tsx +++ b/packages/start/server/types.tsx @@ -74,13 +74,15 @@ declare global { } } +export interface LocalsExt {} + export interface FetchEvent { request: Request; httpServer?: Server; env: Env; fetch(url: string, init?: RequestInit): Promise; clientAddress: string; - locals: Record; + locals: Record & LocalsExt; } export interface ServerFunctionEvent extends FetchEvent {