fastify-socket.io icon indicating copy to clipboard operation
fastify-socket.io copied to clipboard

Type issue with 5.0

Open lity opened this issue 1 year ago • 3 comments

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' ...

lity avatar Nov 30 '23 07:11 lity