Skip to content

Commit 833b2c5

Browse files
a-a-GiTHuB-a-aairhorns
authored andcommitted
Add req.ws to typedefs
Wow, what a dumb oversight.
1 parent 0e7646f commit 833b2c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ declare module 'fastify' {
2323
websocketServer: WebSocket.Server,
2424
}
2525

26+
interface FastifyReply {
27+
ws: boolean
28+
}
29+
2630
interface RouteShorthandMethod<
2731
RawServer extends RawServerBase = RawServerDefault,
2832
RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>,

0 commit comments

Comments
 (0)