File tree 1 file changed +6
-11
lines changed
packages/cactus-cmd-api-server/src/main/typescript
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
import path from "path" ;
2
- import { gte } from "semver" ;
3
- import { AddressInfo } from "net" ;
2
+ import type { AddressInfo } from "net" ;
4
3
import tls from "tls" ;
5
4
import { Server , createServer } from "http" ;
6
- import { Server as SecureServer } from "https" ;
5
+ import type { Server as SecureServer } from "https" ;
7
6
import { createServer as createSecureServer } from "https" ;
7
+ import { gte } from "semver" ;
8
8
import npm from "npm" ;
9
9
import expressHttpProxy from "express-http-proxy" ;
10
- import express , {
11
- Express ,
12
- Request ,
13
- Response ,
14
- RequestHandler ,
15
- Application ,
16
- } from "express" ;
10
+ import type { Application , Request , Response , RequestHandler } from "express" ;
11
+ import express from "express" ;
17
12
import { OpenApiValidator } from "express-openapi-validator" ;
18
13
import compression from "compression" ;
19
14
import bodyParser from "body-parser" ;
@@ -377,7 +372,7 @@ export class ApiServer {
377
372
} ,
378
373
} ) ;
379
374
380
- const app : Express = express ( ) ;
375
+ const app : Application = express ( ) ;
381
376
app . use ( "/api/v*" , apiProxyMiddleware ) ;
382
377
app . use ( compression ( ) ) ;
383
378
app . use ( corsMiddleware ) ;
You can’t perform that action at this time.
0 commit comments