diff --git a/partykit/server.ts b/partykit/server.ts index e0767f03e..2f8639b50 100644 --- a/partykit/server.ts +++ b/partykit/server.ts @@ -1,4 +1,4 @@ -import type { PartyKitServer, Party } from 'partykit/server' +import type { PartyKitServer, Room } from 'partykit/server' export default { async onConnect (ws, party) { @@ -74,5 +74,4 @@ export default { }, } satisfies PartyKitServer -const getCount = (room: Party) => - room.storage.get('count').then(r => r || 0) +const getCount = (room: Room) => room.storage.get('count').then(r => r || 0)