Skip to content

Commit

Permalink
Merge pull request #847 from DaniFoldi/main
Browse files Browse the repository at this point in the history
Add missing types for Durable Object Hibernation API handlers
  • Loading branch information
mrbbot authored Jul 10, 2023
2 parents e7fed90 + 4c171db commit 857ef5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/workerd/api/actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ class DurableObject: public Fetcher {
JSG_TS_DEFINE(interface DurableObject {
fetch(request: Request): Response | Promise<Response>;
alarm?(): void | Promise<void>;
webSocketMessage(ws: WebSocket, message: string | ArrayBuffer): void | Promise<void>;
webSocketClose(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise<void>;
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
});
JSG_TS_OVERRIDE(DurableObjectStub);
// Rename this resource type to DurableObjectStub, and make DurableObject
Expand Down

0 comments on commit 857ef5f

Please # to comment.