I have installed the Typescript definitions for a SocketIO client using
npm install @types/socket.io-client
But in VS Code I still get type errors:
let socket: SocketIOClientStatic = io()
Type 'Socket' is missing the following properties from type 'SocketIOClientStatic': protocol, Socket, Manager, managersts(2739)
All these properties are not mentioned as options in intellisense, or in he socketIO docs... they shouldn't be needed when creating an io()
How can I use Typescript with the SocketIO client?