node-minecraft-protocol icon indicating copy to clipboard operation
node-minecraft-protocol copied to clipboard

Client ID is missing from typings.

Open steven-peralta opened this issue 5 years ago • 2 comments

When trying to reference Client.id in a Typescript project, you get the error Property 'id' does not exist on type 'Client'. because it is missing from the Client typings. There should be an optional id property here representing the client id.

steven-peralta avatar Feb 14 '21 03:02 steven-peralta

also the key type of ClientsMap is a string which doesn't make sense because the id of the client is always set to be an incrementation of nextId in Server#listen

steven-peralta avatar Feb 14 '21 04:02 steven-peralta

can be closed, added in #836

u9g avatar Mar 29 '21 11:03 u9g