移除一些ts-ignore

This commit is contained in:
zhl 2020-12-08 18:47:02 +08:00
parent 159ed4a031
commit 0c896a0810
2 changed files with 1 additions and 3 deletions

View File

@ -47,8 +47,7 @@ export class EatConfirmCommand extends Command<CardGameState, { timeUp: boolean
if (tmpActionMap.has(pid)) {
if (typeof tmpActionMap.get(pid) != 'number') {
player = this.state.players.get(pid);
// @ts-ignore
cards = tmpActionMap.get(pid);
cards = tmpActionMap.get(pid) as string[];
break;
}
} else {

View File

@ -11,7 +11,6 @@ import {NextTurnCommand} from "./NextTurnCommand";
export class TurnEndCommand extends Command<CardGameState, {}> {
execute() : Array<Command> | void{
// @ts-ignore
const sessionIds = [...this.state.players.keys()];
if (this.state.currentTurn) {
let player = this.state.players.get(this.state.currentTurn);