feat: GetNationInfo Full Type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user