From ef146c1e77e70a71160144915e4cc07882366d36 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Thu, 14 Nov 2024 20:52:09 -0400 Subject: [PATCH] fix types --- packages/generic-adapter/src/adapter.ts | 3 +-- packages/uws-adapter/src/adapter.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/generic-adapter/src/adapter.ts b/packages/generic-adapter/src/adapter.ts index 97aabf2..c2d7d45 100644 --- a/packages/generic-adapter/src/adapter.ts +++ b/packages/generic-adapter/src/adapter.ts @@ -1,5 +1,4 @@ import type { Logger, UsingClient } from 'seyfert'; -import type { InternalRuntimeConfigHTTP } from 'seyfert/lib/client/base'; import type { HttpServerAdapter } from 'seyfert/lib/client/types'; import { type APIInteraction, InteractionResponseType, InteractionType } from 'seyfert/lib/types'; @@ -19,7 +18,7 @@ export class GenericAdapter implements HttpServerAdapter { async start() { if (this.client.debugger) this.debugger = this.client.debugger; - const { publicKey, applicationId } = await this.client.getRC(); + const { publicKey, applicationId } = await this.client.getRC(); if (!publicKey) { throw new Error('Expected a publicKey, check your config file'); diff --git a/packages/uws-adapter/src/adapter.ts b/packages/uws-adapter/src/adapter.ts index 5a23857..45b7dd5 100644 --- a/packages/uws-adapter/src/adapter.ts +++ b/packages/uws-adapter/src/adapter.ts @@ -1,5 +1,4 @@ import type { Logger, UsingClient } from 'seyfert'; -import type { InternalRuntimeConfigHTTP } from 'seyfert/lib/client/base'; import type { HttpServerAdapter } from 'seyfert/lib/client/types'; import { type APIInteraction, InteractionResponseType, InteractionType } from 'seyfert/lib/types'; @@ -20,7 +19,7 @@ export class UwsAdapter implements HttpServerAdapter { async start(path: `/${string}` = '/interactions', uwsApp?: TemplatedApp) { if (this.client.debugger) this.debugger = this.client.debugger; - const { publicKey, port, applicationId } = await this.client.getRC(); + const { publicKey, port, applicationId } = await this.client.getRC(); if (!publicKey) { throw new Error('Expected a publicKey, check your config file'); @@ -39,7 +38,7 @@ export class UwsAdapter implements HttpServerAdapter { if (uwsApp) { this.logger.info(`Running on ${path}`); } else { - this.app.listen(port, () => { + this.app.listen(port!, () => { this.logger.info(`Listening to :${port}${path}`); }); }