feat: GetNationInfo Full Type

This commit is contained in:
2023-03-09 02:20:19 +09:00
parent db428e5b0d
commit 555b4c9cc6
+10 -7
View File
@@ -150,14 +150,17 @@ export type LiteNationInfoResponse = ValidResponse & {
nation: NationStaticItem;
};
export type NationInfoFull = ValidResponse & {
nation: NationItem;
isFull: true,
impossibleStrategicCommandLists: [string, number][];
nationNotice: string,
troops: Record<number, string>;
}
export type NationInfoResponse =
| (ValidResponse & {
nation: NationStaticItem;
isFull?: false;
})
| (ValidResponse & {
nation: NationItem;
isFull: true,
impossibleStrategicCommandLists: [string, number][];
nationNotice: string,
troops: Record<number, string>;
});
| NationInfoFull;