修复所有类型错误

This commit is contained in:
unanmed 2023-02-20 15:43:32 +08:00
parent 5087b06633
commit cd160cd10d
2 changed files with 17 additions and 25 deletions

2
src/types/data.d.ts vendored
View File

@ -7,7 +7,7 @@ interface MainData {
/** /**
* *
*/ */
readonly floorPatitions: [FloorIds, FloorIds?][]; readonly floorPartitions: [FloorIds, FloorIds?][];
/** /**
* *

40
src/types/status.d.ts vendored
View File

@ -596,17 +596,7 @@ interface InitGameStatus {
/** /**
* *
*/ */
gameOver: false; gameOver: boolean;
/**
* core.status.hero.atk就是当前勇士的攻击力数值
*/
hero: {};
/**
* floorId
*/
floorId: null;
/** /**
* *
@ -615,11 +605,6 @@ interface InitGameStatus {
[P in FloorIds]: Floor<P>; [P in FloorIds]: Floor<P>;
}; };
/**
* core.status.maps[core.status.floorId]
*/
thisMap: null;
/** /**
* *
*/ */
@ -635,11 +620,6 @@ interface InitGameStatus {
*/ */
mapBlockObjs: Record<FloorIds, Record<LocString, Block>>; mapBlockObjs: Record<FloorIds, Record<LocString, Block>>;
/**
*
*/
checkBlock: {};
/** /**
* *
*/ */
@ -789,12 +769,24 @@ interface InitGameStatus {
* *
*/ */
interface GameStatus extends InitGameStatus { interface GameStatus extends InitGameStatus {
played: boolean; /**
gameOver: boolean; * floorId
*/
floorId: FloorIds; floorId: FloorIds;
/**
* core.status.maps[core.status.floorId]
*/
thisMap: ResolvedFloor; thisMap: ResolvedFloor;
/**
*
*/
checkBlock: Readonly<CheckBlockStatus>; checkBlock: Readonly<CheckBlockStatus>;
lockControl: boolean;
/**
* core.status.hero.atk就是当前勇士的攻击力数值
*/
hero: HeroStatus; hero: HeroStatus;
} }