-.-
This commit is contained in:
@@ -6,8 +6,11 @@ export const lobbyPatchSchema = z.object({
|
||||
.min(2, {
|
||||
message: "Name must contain at least 2 characters",
|
||||
})
|
||||
.max(255, {
|
||||
message: "Name can only contain up to 255 characters",
|
||||
.max(64, {
|
||||
message: "Name can only contain up to 64 characters",
|
||||
}),
|
||||
maxPlayers: z.number().default(0),
|
||||
maxPlayers: z.number().min(2).max(12).default(2),
|
||||
});
|
||||
|
||||
export const LobbyMemberRoleSchema = z.enum(["admin", "player"]);
|
||||
export type LobbyMemberRole = z.infer<typeof LobbyMemberRoleSchema>;
|
||||
|
||||
Reference in New Issue
Block a user