🏷️ fix(type): 精简类型

This commit is contained in:
BTMuli
2023-04-25 19:03:16 +08:00
parent 27828e3a40
commit f40d9e61d4
4 changed files with 1025 additions and 4064 deletions

View File

@@ -2,13 +2,13 @@
* @file types Achievement.d.ts
* @author BTMuli<bt-muli@outlook.com>
* @description 成就相关类型定义
* @since Alpha v0.1.2
* @since Alpha v0.1.4
*/
declare namespace BTMuli.Genshin {
/**
* @description 本应用的成就类型
* @since Alpha v0.1.2
* @since Alpha v0.1.4
* @interface Achievement
* @property {number} id - 成就 ID
* @property {number} series - 成就系列 ID
@@ -16,9 +16,6 @@ declare namespace BTMuli.Genshin {
* @property {string} name - 成就名称
* @property {string} description - 成就描述
* @property {number} reward - 成就奖励
* @property {boolean} completed - 成就是否完成
* @property {string} completed_time - 成就完成时间
* @property {number} progress - 成就进度
* @property {string} version - 成就版本
* @return Achievement
*/
@@ -29,22 +26,16 @@ declare namespace BTMuli.Genshin {
name: string
description: string
reward: number
completed: boolean
completed_time: string | null
progress: number
version: string
}
/**
* @description 本应用的成就系列类型
* @since Alpha v0.1.2
* @since Alpha v0.1.4
* @interface AchievementSeries
* @property {number} id - 成就系列 ID
* @property {number} order - 成就系列排列顺序,用于展示全部成就系列
* @property {string} name - 成就系列名称
* @property {string} version - 成就系列版本
* @property {number[]} achievements - 成就系列包含的成就
* @property {number} total_count - 成就系列包含的成就数
* @property {number} completed_count - 成就系列已完成的成就数
* @property {string} card - 成就系列对应名片
* @property {string} icon - 成就系列图标
* @return AchievementSeries
@@ -54,10 +45,7 @@ declare namespace BTMuli.Genshin {
order: number
name: string
version: string
achievements: number[]
total_count: number
completed_count: number
card?: string
card: string
icon: string
}
}