shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
19 stars 42 forks source link

engine: Convert to typescript #33

Closed criticic closed 4 months ago

criticic commented 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

Checklist

The test fails due to eslint disallowing any type

criticic commented 4 months ago

The other ESLint errors, are unrelated to this PR, I have fixed the prettier issue though.

kuv2707 commented 4 months ago

Merged, thanks @criticic

kuv2707 commented 4 months ago

Yes, I realized it later. We'll have to define a different type for the User objects.