From 3eec1034318af85b94bf56477629db08fc286a08 Mon Sep 17 00:00:00 2001 From: adjsky Date: Thu, 18 May 2023 14:33:35 +0300 Subject: [PATCH] fix: import WebSocket using default import (d.ts) --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index b04fc49..b244fe4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -2,7 +2,7 @@ import { IncomingMessage, ServerResponse, Server } from 'http'; import { FastifyRequest, FastifyPluginCallback, RawServerBase, RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, RequestGenericInterface, ContextConfigDefault, FastifyInstance, FastifySchema, FastifyTypeProvider, FastifyTypeProviderDefault, FastifyBaseLogger } from 'fastify'; import * as fastify from 'fastify'; -import * as WebSocket from 'ws'; +import WebSocket from 'ws'; import { Duplex, DuplexOptions } from 'stream'; import { FastifyReply } from 'fastify/types/reply'; import { RouteGenericInterface } from 'fastify/types/route';