Skip to content

Commit e5b8c11

Browse files
authored
Merge pull request #259 from adjsky/master
fix: import WebSocket using default import (d.ts)
2 parents f7da62d + 3eec103 commit e5b8c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
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 * as WebSocket from 'ws';
5+
import WebSocket from 'ws';
66
import { Duplex, DuplexOptions } from 'stream';
77
import { FastifyReply } from 'fastify/types/reply';
88
import { RouteGenericInterface } from 'fastify/types/route';

0 commit comments

Comments
 (0)