Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash committed Jun 17, 2024
1 parent 1f23d36 commit 397ed9f
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/schema/definitions/battleStatus.ts
Original file line number Diff line number Diff line change
@@ -14,14 +14,15 @@ export const battleStatus = Nullable(
Type.Object({
isSpectator: Type.Literal(true),
}),
Type.Ref(spectator)
Type.Ref(spectator),
]),
Type.Intersect([
Type.Object({
isSpectator: Type.Literal(false),
}),
Type.Ref(player)
Type.Ref(player),
]),
]),
]), { $id: "battleStatus" }
);
]),
{ $id: "battleStatus" }
);
2 changes: 1 addition & 1 deletion src/schema/definitions/user.ts
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ export const user = Type.Object(
Type.Literal("playing"),
Type.Literal("lobby"),
]),
battleStatus: Type.Ref(battleStatus)
battleStatus: Type.Ref(battleStatus),
},
{ $id: "user" }
);

0 comments on commit 397ed9f

Please sign in to comment.