Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Generic Room Type does not infer State Type #10

Open
fairhat opened this issue Nov 17, 2021 · 0 comments
Open

Command Generic Room Type does not infer State Type #10

fairhat opened this issue Nov 17, 2021 · 0 comments

Comments

@fairhat
Copy link

fairhat commented Nov 17, 2021

Library extends the Command class with Generic Types of <Room, Payload>
However it should be <Room, Payload>

Solution:

export abstract class Command<
  R extends Room<any, any> = Room,
  Payload = unknown,
> {
  payload: Payload;

PR coming soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant