mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
🌱 添加 wiki 武器类型相关
This commit is contained in:
31
src/types/App/Weapon.d.ts
vendored
31
src/types/App/Weapon.d.ts
vendored
@@ -1,8 +1,7 @@
|
||||
/**
|
||||
* @file types App Weapon.d.ts
|
||||
* @file types/App/Weapon.d.ts
|
||||
* @description 本应用的武器类型定义文件
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.5
|
||||
* @since Beta v0.3.8
|
||||
*/
|
||||
|
||||
declare namespace TGApp.App.Weapon {
|
||||
@@ -28,4 +27,30 @@ declare namespace TGApp.App.Weapon {
|
||||
weaponIcon: string;
|
||||
icon: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 转换后的武器数据
|
||||
* @since Beta v0.3.8
|
||||
* @interface WikiItem
|
||||
* @memberof TGApp.App.Weapon
|
||||
* @property {number} id 武器 id
|
||||
* @property {string} name 武器名称
|
||||
* @property {string} description 武器简介
|
||||
* @property {number} star 武器星级
|
||||
* @property {string} weapon 武器类型
|
||||
* @property {TGApp.App.Calendar.Material[]} materials 武器培养材料
|
||||
* @property {TGACore.Components.Weapon.RhiAffix} affix 精炼描述
|
||||
* @property {string} story 武器故事
|
||||
* @return WikiItem
|
||||
*/
|
||||
interface WikiItem {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
star: number;
|
||||
weapon: string;
|
||||
materials: TGApp.App.Calendar.Material[];
|
||||
affix: TGACore.Components.Weapon.RhiAffix;
|
||||
story: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user