Skip to content

Commit

Permalink
fix(serve): EventSourceContext Partial<State>
Browse files Browse the repository at this point in the history
Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
  • Loading branch information
MKRhere committed Feb 12, 2022
1 parent 070167e commit 082b7eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serve/eventsource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type EventSourceContext<State = {}> = {
event: (e: Event) => Promise<void>;
ended: boolean;
startResponse: (headers?: HeadersInit) => Promise<void>;
state: State;
state: Partial<State>;
};

type EventSourceHandler<State = {}> = (ctx: EventSourceContext<State>) => Promise<void>;
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "2.0.0-alpha.11";
export const version = "2.0.0-alpha.12";

0 comments on commit 082b7eb

Please sign in to comment.