You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that socket.io let's you type the io instance, which is great, that's why this plugin does not ship types anymore.
So that you can type your instance.
When I import fastify-socket.io 5.0 in my typescript project, like this:
...
import FastifyIO from 'fastify-socket.io'
...
type error reported:
"Cannot find module 'fastify-socket.io' or its corresponding type declarations."
I have to use // @ts-ignore to suppress the error, like this:
...
// @ts-ignore
import FastifyIO from 'fastify-socket.io'
...
The text was updated successfully, but these errors were encountered: