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

isConnected property missing from Board props #1125

Open
walkerkd opened this issue Jan 21, 2023 · 0 comments
Open

isConnected property missing from Board props #1125

walkerkd opened this issue Jan 21, 2023 · 0 comments

Comments

@walkerkd
Copy link
Contributor

The client board props documentation at https://boardgame.io/documentation/#/api/Client documents

isConnected: true if connection to the server is active.

However this appears to be missing in v0.52.2

I suspect that this declaration in client.d.ts incorrectly defines 2 isActive fields and one of them should be isConnected:

export declare type ClientState<G extends any = any> = null | (State<G> & {
    isActive: boolean;
    isActive: boolean;
    log: LogEntry[];
});
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