0

I want to create a node.js server app using socket.io and write it with TypeScript. Is there currently a definition file for socket.io floating around, or am I going to have to work with a declare var socketio: any for now?

1 Answer 1

2

I've been using this one

https://github.com/soywiz/typescript-node-definitions/blob/master/socket.io.d.ts

which hasn't failed me yet (though I haven't tried everything yet).

Edit: This was also just suggested as an addition to the wonderful DefinitelyTyped project

https://github.com/worr/DefinitelyTyped/commit/0be80b5a26e1a4fb9734e935bf6dff872de7182c

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.