From 108b662e33368c1ec197c7e8aa68008983d1f4ed Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 3 Dec 2025 12:33:46 -0800 Subject: [PATCH] make weapon series flags non-optional in type --- src/lib/types/api/weaponSeries.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/lib/types/api/weaponSeries.ts b/src/lib/types/api/weaponSeries.ts index c1ddb337..b9f26d8f 100644 --- a/src/lib/types/api/weaponSeries.ts +++ b/src/lib/types/api/weaponSeries.ts @@ -25,19 +25,20 @@ export interface WeaponSeriesRef { /** * Full weapon series from /api/v1/weapon_series endpoint. - * The list endpoint returns a minimal view, while the show endpoint returns the full view. + * Flags are included in both list and show endpoints. + * weaponCount is only included in the :full view (show endpoint). */ export interface WeaponSeries { id: string name: { en: string; ja: string } slug: string order: number + extra: boolean + elementChangeable: boolean + hasWeaponKeys: boolean + hasAwakening: boolean + hasAxSkills: boolean // Only included in :full view (show endpoint) - extra?: boolean - elementChangeable?: boolean - hasWeaponKeys?: boolean - hasAwakening?: boolean - hasAxSkills?: boolean weaponCount?: number }