✏️ 类型修正以避免报错

This commit is contained in:
BTMuli
2023-12-14 18:03:49 +08:00
parent 2f9fb30026
commit 3844e36fdb

View File

@@ -1,13 +1,13 @@
/** /**
* @file types/App/Calendar.d.ts * @file types/App/Calendar.d.ts
* @description 应用素材日历相关类型定义文件 * @description 应用素材日历相关类型定义文件
* @since Beta v0.3.5 * @since Beta v0.3.8
*/ */
declare namespace TGApp.App.Calendar { declare namespace TGApp.App.Calendar {
/** /**
* @description 素材日历类型 * @description 素材日历类型
* @since Beta v0.3.5 * @since Beta v0.3.8
* @interface Item * @interface Item
* @property {number} id - 角色ID/武器ID * @property {number} id - 角色ID/武器ID
* @property {number} contentId - 观测枢的 content_id * @property {number} contentId - 观测枢的 content_id
@@ -28,7 +28,7 @@ declare namespace TGApp.App.Calendar {
contentId: number; contentId: number;
dropDays: number[]; dropDays: number[];
name: string; name: string;
itemType: "character" | "weapon"; itemType: string; // character | weapon
star: number; star: number;
bg: string; bg: string;
icon: string; icon: string;