make weapon series flags non-optional in type

This commit is contained in:
Justin Edmund 2025-12-03 12:33:46 -08:00
parent ab4c8058f4
commit 108b662e33

View file

@ -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
}