✏️ 类型修正

This commit is contained in:
BTMuli
2023-12-22 21:48:38 +08:00
parent bb296ce9d1
commit d94f4cff9d
2 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
/** /**
* @file plugins/Hutao/types/Weapon.d.ts * @file plugins/Hutao/types/Weapon.d.ts
* @description 武器组件类型定义 * @description 武器组件类型定义
* @since Beta v0.3.8 * @since Beta v0.3.9
*/ */
/** /**
@@ -51,7 +51,7 @@ declare namespace TGApp.Plugins.Hutao.Weapon {
/** /**
* @description 精炼描述 * @description 精炼描述
* @since Beta v0.3.8 * @since Beta v0.3.9
* @memberof TGApp.Plugins.Hutao.Weapon * @memberof TGApp.Plugins.Hutao.Weapon
* @interface RhiAffix * @interface RhiAffix
* @property {string} Name 精炼名称 * @property {string} Name 精炼名称
@@ -60,7 +60,7 @@ declare namespace TGApp.Plugins.Hutao.Weapon {
*/ */
interface RhiAffix { interface RhiAffix {
Name: string; Name: string;
Description: Array<{ Descriptions: Array<{
Level: number; Level: number;
Description: string; Description: string;
}>; }>;

View File

@@ -1,7 +1,7 @@
/** /**
* @file types/App/Weapon.d.ts * @file types/App/Weapon.d.ts
* @description 本应用的武器类型定义文件 * @description 本应用的武器类型定义文件
* @since Beta v0.3.8 * @since Beta v0.3.9
*/ */
declare namespace TGApp.App.Weapon { declare namespace TGApp.App.Weapon {
@@ -30,7 +30,7 @@ declare namespace TGApp.App.Weapon {
/** /**
* @description 转换后的武器数据 * @description 转换后的武器数据
* @since Beta v0.3.8 * @since Beta v0.3.9
* @interface WikiItem * @interface WikiItem
* @memberof TGApp.App.Weapon * @memberof TGApp.App.Weapon
* @property {number} id 武器 id * @property {number} id 武器 id
@@ -40,7 +40,7 @@ declare namespace TGApp.App.Weapon {
* @property {string} weapon 武器类型 * @property {string} weapon 武器类型
* @property {TGApp.App.Calendar.Material[]} materials 武器培养材料 * @property {TGApp.App.Calendar.Material[]} materials 武器培养材料
* @property {TGApp.Plugins.Hutao.Weapon.RhiAffix} affix 精炼描述 * @property {TGApp.Plugins.Hutao.Weapon.RhiAffix} affix 精炼描述
* @property {string|string[]} story 武器故事 * @property {string[]} story 武器故事
* @return WikiItem * @return WikiItem
*/ */
interface WikiItem { interface WikiItem {
@@ -51,6 +51,6 @@ declare namespace TGApp.App.Weapon {
weapon: string; weapon: string;
materials: TGApp.App.Calendar.Material[]; materials: TGApp.App.Calendar.Material[];
affix: TGApp.Plugins.Hutao.Weapon.RhiAffix; affix: TGApp.Plugins.Hutao.Weapon.RhiAffix;
story: string | string[]; story: string[];
} }
} }