From 555b4c9cc6e132040d7bd68b064391b73b2ccf97 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 4 Mar 2023 23:02:24 +0900 Subject: [PATCH] feat: GetNationInfo Full Type --- hwe/ts/defs/API/Nation.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/hwe/ts/defs/API/Nation.ts b/hwe/ts/defs/API/Nation.ts index c2124ff4..e77dc5a8 100644 --- a/hwe/ts/defs/API/Nation.ts +++ b/hwe/ts/defs/API/Nation.ts @@ -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; +} + export type NationInfoResponse = | (ValidResponse & { nation: NationStaticItem; + isFull?: false; }) - | (ValidResponse & { - nation: NationItem; - isFull: true, - impossibleStrategicCommandLists: [string, number][]; - nationNotice: string, - troops: Record; - }); + | NationInfoFull;