Skip to content

Commit a1ec0c9

Browse files
committed
improve declaration
1 parent c3d7419 commit a1ec0c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hapi-plugin-websocket.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import * as ws from "ws"
2626
import * as http from "node:http"
27+
import * as HAPI from "@hapi/hapi"
2728

2829
interface HapiWebsocketPluginState {
2930
mode: "websocket"
@@ -83,7 +84,7 @@ declare module "@hapi/hapi" {
8384
websocket: HapiWebsocketPluginState
8485
}
8586
export interface PluginSpecificConfiguration {
86-
websocket: HapiWebsocketPluginSpecificConfiguration
87+
websocket?: HapiWebsocketPluginSpecificConfiguration
8788
}
8889
}
8990

0 commit comments

Comments
 (0)