mirror of
https://github.com/tiennm99/noitu.git
synced 2026-10-11 03:13:45 +00:00
Use the generated ServerMessage/ClientMessage union everywhere a decoded message crosses a function boundary, so a typo in a payload field is a build error instead of undefined at runtime. Clears every jsdoc/reject-any-type warning in src/ and all but one in tests/ — room-code.test.js keeps one to deliberately call normalizeRoomCode(undefined) against its documented string-only signature, which is the point of that test. Also fixes the flaky e2e helper: playingPair now waits for the guest's seat (joinRoomSeated) before readyAndStart, and readyAndStart asserts the guest's own ready row before touching Start, since a SetReady send can silently drop while the socket is not open and nothing retries it.