diff --git a/src/extends.ts b/src/extends.ts index 6264fc8..db0d2c1 100644 --- a/src/extends.ts +++ b/src/extends.ts @@ -1,4 +1,3 @@ - import 'tsrpc'; import { ApiCall, BaseConnection, ConnectionStatus, WsServer } from 'tsrpc'; import { Wjjl } from './module/collection_wjjl'; @@ -133,7 +132,7 @@ BaseConnection.prototype.getDefaultFightData = async function (this: BaseConnect posObj = this.gud.matrixPos[this.gud.selectMatrix]; } - let heros = await HeroFun.getHeros(this, Object.values(posObj).filter(_id => _id != '')); + let heros = await HeroFun.getHeros(this, Object.values(posObj).filter(_id => _id != '') as string[]); Object.entries(posObj).forEach(obj => { let pos = obj[0];