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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.21.0
Plugin version
8.5.10
Node.js version
18.17.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Pop_os! 22.04
Description
Before fixing this bug, fastify.websocketServer it doesnt have any resolved auto completion/types in vscode, when I open the type definition it throw error TS1259, because ws package use export = Websocket.
I fix this issue when I change import WebSocket from "ws" to import * as WebSocket from "ws" directly in node_modules/@types/fastify-websocket or in this repo type definition
Steps to Reproduce
hovering fastify.websocketServer and open node_modules/@types/fastify-websocket/index.d.ts
Expected Behavior
Expected resolved type definition and autocomplete in vscode
The text was updated successfully, but these errors were encountered:
Prerequisites
Fastify version
4.21.0
Plugin version
8.5.10
Node.js version
18.17.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Pop_os! 22.04
Description
Before fixing this bug,
fastify.websocketServer
it doesnt have any resolved auto completion/types in vscode, when I open the type definition it throw error TS1259, becausews
package useexport = Websocket
.I fix this issue when I change
import WebSocket from "ws"
toimport * as WebSocket from "ws"
directly innode_modules/@types/fastify-websocket
or in this repo type definitionSteps to Reproduce
hovering
fastify.websocketServer
and opennode_modules/@types/fastify-websocket/index.d.ts
Expected Behavior
Expected resolved type definition and autocomplete in vscode
The text was updated successfully, but these errors were encountered: