Closed criticic closed 4 months ago
This commit converts the engine to typescript, and adds relevant types for all relevant functions and variables.
The player type is set to have a id field, and cards field containing an array of UNOCards
Fixes #25
The test fails due to eslint disallowing any type
The other ESLint errors, are unrelated to this PR, I have fixed the prettier issue though.
Merged, thanks @criticic
Yes, I realized it later. We'll have to define a different type for the User objects.
This commit converts the engine to typescript, and adds relevant types for all relevant functions and variables.
The player type is set to have a id field, and cards field containing an array of UNOCards
Fixes #25
Checklist
The test fails due to eslint disallowing any type