Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
morajabi committed Dec 13, 2024
1 parent 8686814 commit 6b6b0c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/ws/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { t, type Static } from "elysia"
import { Input as GetMeInput } from "@in/server/methods/getMe"
import { nanoid } from "nanoid/non-secure"
import { TUpdate } from "@in/server/models"
import type { StaticDecode, StaticEncode } from "@sinclair/typebox"

const Methods = t.Union([
t.Object({
Expand Down Expand Up @@ -97,7 +98,7 @@ export const ServerMessage = t.Union([
}),
])

export type ServerMessageType = Static<typeof ServerMessage>
export type ServerMessageType = StaticDecode<typeof ServerMessage>

export const enum ClientMessageKind {
ConnectionInit = 1, // used for connection initialization with auth
Expand Down

0 comments on commit 6b6b0c7

Please sign in to comment.