Update package versions for node 18
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2023-06-13 01:16:14 -05:00
parent 899c8448fc
commit 9aa3f56340
4 changed files with 580 additions and 466 deletions

View File

@@ -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(),
})

View File

@@ -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
}