avoid using any
This commit is contained in:
@@ -4,14 +4,14 @@ import path from 'path'
|
||||
|
||||
// pkg 打包后,需要从可执行文件所在目录读取 .env 文件
|
||||
// @ts-ignore - process.pkg 是 pkg 打包后添加的属性
|
||||
const envPath = (process as any).pkg
|
||||
const envPath = process.pkg
|
||||
? path.join(path.dirname(process.execPath), '.env')
|
||||
: path.join(process.cwd(), '.env')
|
||||
|
||||
dotenv.config({ path: envPath })
|
||||
|
||||
import express from 'express'
|
||||
import { createServer } from 'http'
|
||||
import { Server, createServer } from 'http'
|
||||
import { Server as SocketIOServer } from 'socket.io'
|
||||
import cors from 'cors'
|
||||
import multer from 'multer'
|
||||
@@ -32,7 +32,7 @@ import { AdaptiveQualityService } from './services/AdaptiveQualityService'
|
||||
*/
|
||||
class RemoteControlServer {
|
||||
private app: express.Application
|
||||
private server: any
|
||||
private server: Server
|
||||
private io: SocketIOServer
|
||||
private deviceManager: DeviceManager
|
||||
private webClientManager: WebClientManager
|
||||
|
||||
Reference in New Issue
Block a user