feat: GetNationInfo Full Type
This commit is contained in:
@@ -150,14 +150,17 @@ export type LiteNationInfoResponse = ValidResponse & {
|
|||||||
nation: NationStaticItem;
|
nation: NationStaticItem;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type NationInfoFull = ValidResponse & {
|
||||||
|
nation: NationItem;
|
||||||
|
isFull: true,
|
||||||
|
impossibleStrategicCommandLists: [string, number][];
|
||||||
|
nationNotice: string,
|
||||||
|
troops: Record<number, string>;
|
||||||
|
}
|
||||||
|
|
||||||
export type NationInfoResponse =
|
export type NationInfoResponse =
|
||||||
| (ValidResponse & {
|
| (ValidResponse & {
|
||||||
nation: NationStaticItem;
|
nation: NationStaticItem;
|
||||||
|
isFull?: false;
|
||||||
})
|
})
|
||||||
| (ValidResponse & {
|
| NationInfoFull;
|
||||||
nation: NationItem;
|
|
||||||
isFull: true,
|
|
||||||
impossibleStrategicCommandLists: [string, number][];
|
|
||||||
nationNotice: string,
|
|
||||||
troops: Record<number, string>;
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user