Skip to content

Commit

Permalink
Fix types in server
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx committed Jun 10, 2023
1 parent a32706c commit bff4e66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
required: true
DOCKERHUB_TOKEN:
required: true
GITHUB_TOKEN:
required: true
jobs:
docker:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from './shared/defaults.js';
import { logger as getLogger } from './shared/logger.js';
import type { SSH, SSL, Server } from './shared/interfaces.js';
import type { Application } from 'express';
import type { Express } from 'express';
import type SocketIO from 'socket.io';

export * from './shared/interfaces.js';
Expand All @@ -45,7 +45,7 @@ export const start = (
decorateServerWithSsh(express(), ssh, serverConf, command, forcessh, ssl);

export async function decorateServerWithSsh(
app: Application,
app: Express,
ssh: SSH = sshDefault,
serverConf: Server = serverDefault,
command: string = defaultCommand,
Expand Down
4 changes: 2 additions & 2 deletions src/server/socketServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { policies } from './socketServer/security.js';
import { listen } from './socketServer/socket.js';
import { loadSSL } from './socketServer/ssl.js';
import type { SSL, SSLBuffer, Server } from '../shared/interfaces.js';
import type { Application } from 'express';
import type { Express } from 'express';
import type SocketIO from 'socket.io';

export async function server(
app: Application,
app: Express,
{ base, port, host, title, allowIframe }: Server,
ssl?: SSL,
): Promise<SocketIO.Server> {
Expand Down

0 comments on commit bff4e66

Please sign in to comment.