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