Update package versions for node 18
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
This commit is contained in:
@@ -68,7 +68,7 @@ export class WebsocketServer extends Unit {
|
||||
|
||||
// Start the websocket server
|
||||
this.logging.info('Starting WebSocket server...')
|
||||
this.server = new WebSocket.Server<WebSocket.WebSocket>({
|
||||
this.server = new WebSocket.Server<typeof WebSocket.WebSocket>({
|
||||
server: this.http.getServer(),
|
||||
})
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export type ParameterizedCallback<T> = ((arg: T) => any)
|
||||
export type KeyValue<T> = {key: string, value: T}
|
||||
|
||||
/** Simple helper method to verify that a key is a keyof some object. */
|
||||
export function isKeyof<T>(key: unknown, obj: T): key is keyof T {
|
||||
export function isKeyof<T extends object>(key: unknown, obj: T): key is keyof T {
|
||||
if ( typeof key !== 'string' && typeof key !== 'symbol' ) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user