Skip to content

Commit f8b72af

Browse files
committed
fix definition
1 parent 530efbe commit f8b72af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hapi-plugin-websocket.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Podium } from "@hapi/podium"
2727
import * as ws from "ws"
2828
import * as http from "node:http"
2929

30-
declare namespace HAPIPluginWebSockets {
30+
declare namespace HAPIPluginWebsocket {
3131
interface PluginState {
3232
mode: "websocket"
3333
ctx: Record<string, any>
@@ -82,19 +82,19 @@ declare namespace HAPIPluginWebSockets {
8282
}
8383
}
8484

85-
declare const HAPIPluginDucky: Plugin<HAPIPluginWebSockets.OptionalRegistrationOptions>
85+
declare const HAPIPluginWebsocket: Plugin<HAPIPluginWebsocket.OptionalRegistrationOptions>
8686

87-
export = HAPIPluginWebSockets
87+
export = HAPIPluginWebsocket
8888

8989
declare module "@hapi/hapi" {
9090
export interface Request<Refs extends ReqRef = ReqRefDefaults> extends Podium {
91-
websocket(): HAPIPluginWebSockets.PluginState
91+
websocket(): HAPIPluginWebsocket.PluginState
9292
}
9393
export interface PluginsStates {
94-
websocket: HAPIPluginWebSockets.PluginState
94+
websocket: HAPIPluginWebsocket.PluginState
9595
}
9696
export interface PluginSpecificConfiguration {
97-
websocket?: HAPIPluginWebSockets.PluginSpecificConfiguration
97+
websocket?: HAPIPluginWebsocket.PluginSpecificConfiguration
9898
}
9999
}
100100

0 commit comments

Comments
 (0)