Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
MARCROCK22 committed Nov 15, 2024
1 parent a73b50e commit ef146c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/generic-adapter/src/adapter.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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<InternalRuntimeConfigHTTP>();
const { publicKey, applicationId } = await this.client.getRC();

if (!publicKey) {
throw new Error('Expected a publicKey, check your config file');
Expand Down
5 changes: 2 additions & 3 deletions packages/uws-adapter/src/adapter.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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<InternalRuntimeConfigHTTP>();
const { publicKey, port, applicationId } = await this.client.getRC();

if (!publicKey) {
throw new Error('Expected a publicKey, check your config file');
Expand All @@ -39,7 +38,7 @@ export class UwsAdapter implements HttpServerAdapter {
if (uwsApp) {
this.logger.info(`Running on <url>${path}`);
} else {
this.app.listen(port, () => {
this.app.listen(port!, () => {
this.logger.info(`Listening to <url>:${port}${path}`);
});
}
Expand Down

0 comments on commit ef146c1

Please sign in to comment.