Definitelytyped: @types/socket.io-client upgrade to latest version?

Created on 17 Jul 2017  Â·  6Comments  Â·  Source: DefinitelyTyped/DefinitelyTyped

  • [X] I tried using the @types/socket.io-client package and had problems.
  • [X] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • [X] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • [x] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see Definitions by: in index.d.ts) so they can respond.

    • Authors: @progre @divillysausages @florentpoujol

Hi devs, I think you did an awesome job with the type definitions. But the definitions are for socket.io version 1.4.4. I just wanted to ask if you have any plans on update it to the latest socket.io version 2.X?

Most helpful comment

Any updates here? I would also like to have an exported Socket to use in TS Classes for reference.

All 6 comments

+1 Would also like to see an update

I don't have the time atm so you're free to crack away at it :)

On 7 Oct 2017 11:21, "Sebastian" notifications@github.com wrote:

+1 Also need this

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18127#issuecomment-334922182,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAK-qoBhuhiWjf0MaGfWc3E42j3wzTaLks5sp0J9gaJpZM4OZmeH
.

@divillysausages I will do it but could you give me a starting point how to actually do the update?
For example: where do I define the version of Socket.IO that should be used for the typescript definition?

Should be in the tsd file itself (or the naming of the file) if I remember
right. It's been a while since I've looked at it. If you check out the
files you should be able to see, as I had to do this when I did the current
version

On 7 Oct 2017 12:04, "Marc Bornträger" notifications@github.com wrote:

@divillysausages https://github.com/divillysausages I will do it but
could you give me a starting point how to actually do the update?
For example: where do I define the version of Socket.IO that should be
used for the typescript definition?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18127#issuecomment-334924320,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAK-quevFpfsvZKt_19XmPDiKjwDjAJxks5sp0ybgaJpZM4OZmeH
.

Any updates here? I would also like to have an exported Socket to use in TS Classes for reference.

@types/socket.io-client was last updated 4 years ago on version 1.4.32 but latest is 2.3.0 :(

Was this page helpful?
0 / 5 - 0 ratings