Skip to content

Commit

Permalink
chore: update type import
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 3, 2024
1 parent d2aefa9 commit d07ceac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions partykit/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PartyKitServer, Party } from 'partykit/server'
import type { PartyKitServer, Room } from 'partykit/server'

export default {
async onConnect (ws, party) {
Expand Down Expand Up @@ -74,5 +74,4 @@ export default {
},
} satisfies PartyKitServer

const getCount = (room: Party) =>
room.storage.get<number>('count').then(r => r || 0)
const getCount = (room: Room) => room.storage.get<number>('count').then(r => r || 0)

0 comments on commit d07ceac

Please sign in to comment.