boardgame.io icon indicating copy to clipboard operation
boardgame.io copied to clipboard

isConnected property missing from Board props

Open walkerkd opened this issue 1 year ago • 0 comments

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[];
});

walkerkd avatar Jan 21 '23 23:01 walkerkd