Skip to content

Commit 082b7eb

Browse files
committed
fix(serve): EventSourceContext Partial<State>
Signed-off-by: Muthu Kumar <[email protected]>
1 parent 070167e commit 082b7eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

serve/eventsource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type EventSourceContext<State = {}> = {
1616
event: (e: Event) => Promise<void>;
1717
ended: boolean;
1818
startResponse: (headers?: HeadersInit) => Promise<void>;
19-
state: State;
19+
state: Partial<State>;
2020
};
2121

2222
type EventSourceHandler<State = {}> = (ctx: EventSourceContext<State>) => Promise<void>;

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = "2.0.0-alpha.11";
1+
export const version = "2.0.0-alpha.12";

0 commit comments

Comments
 (0)