移除一些ts-ignore
This commit is contained in:
parent
159ed4a031
commit
0c896a0810
@ -47,8 +47,7 @@ export class EatConfirmCommand extends Command<CardGameState, { timeUp: boolean
|
|||||||
if (tmpActionMap.has(pid)) {
|
if (tmpActionMap.has(pid)) {
|
||||||
if (typeof tmpActionMap.get(pid) != 'number') {
|
if (typeof tmpActionMap.get(pid) != 'number') {
|
||||||
player = this.state.players.get(pid);
|
player = this.state.players.get(pid);
|
||||||
// @ts-ignore
|
cards = tmpActionMap.get(pid) as string[];
|
||||||
cards = tmpActionMap.get(pid);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -11,7 +11,6 @@ import {NextTurnCommand} from "./NextTurnCommand";
|
|||||||
export class TurnEndCommand extends Command<CardGameState, {}> {
|
export class TurnEndCommand extends Command<CardGameState, {}> {
|
||||||
|
|
||||||
execute() : Array<Command> | void{
|
execute() : Array<Command> | void{
|
||||||
// @ts-ignore
|
|
||||||
const sessionIds = [...this.state.players.keys()];
|
const sessionIds = [...this.state.players.keys()];
|
||||||
if (this.state.currentTurn) {
|
if (this.state.currentTurn) {
|
||||||
let player = this.state.players.get(this.state.currentTurn);
|
let player = this.state.players.get(this.state.currentTurn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user