Skip to content

Commit 5029856

Browse files
authored
Update index.d.ts (#284)
Fixing Unresolved Types for `websocketServer`
1 parent d7462d8 commit 5029856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { IncomingMessage, ServerResponse, Server } from 'http';
33
import { FastifyRequest, FastifyPluginCallback, RawServerBase, RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, RequestGenericInterface, ContextConfigDefault, FastifyInstance, FastifySchema, FastifyTypeProvider, FastifyTypeProviderDefault, FastifyBaseLogger } from 'fastify';
44
import * as fastify from 'fastify';
5-
import WebSocket from 'ws';
5+
import * as WebSocket from 'ws';
66
import { Duplex, DuplexOptions } from 'stream';
77
import { FastifyReply } from 'fastify/types/reply';
88
import { preCloseHookHandler, preCloseAsyncHookHandler } from 'fastify/types/hooks';

0 commit comments

Comments
 (0)