mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🏷️ fix(wiki): 完善类型
This commit is contained in:
74
src/types/GCG.d.ts
vendored
74
src/types/GCG.d.ts
vendored
@@ -24,4 +24,78 @@ declare namespace BTMuli.Genshin.Wiki.GCG {
|
||||
type: string
|
||||
icon: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 卡牌完整信息
|
||||
* @since Alpha v0.1.3
|
||||
* @interface FullInfo
|
||||
* @property {number} id - 卡牌 ID
|
||||
* @property {string} name - 卡牌名称
|
||||
* @property {string} type - 卡牌类型
|
||||
* @property {BaseInfo} baseInfo - 基础信息
|
||||
* @property {skillInfo[]} skillInfo - 技能信息
|
||||
* @property {addInfo[]} addInfo - 附加信息
|
||||
* @return FullInfo
|
||||
*/
|
||||
export interface FullInfo {
|
||||
id: number
|
||||
name: string
|
||||
type: string
|
||||
baseInfo: BaseInfo
|
||||
skillInfo: SkillInfo[]
|
||||
addInfo: AddInfo[]
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 基础信息
|
||||
* @since Alpha v0.1.3
|
||||
* @interface BaseInfo
|
||||
* @property {string} title - 卡牌称号
|
||||
* @property {string} icon - 卡牌图标
|
||||
* @property {BTMuli.Genshin.Wiki.BaseAttri[]} tags - 卡牌标签
|
||||
* @property {string} source - 卡牌获取途径
|
||||
* @property {string} description - 卡牌描述
|
||||
* @return BaseInfo
|
||||
*/
|
||||
export interface BaseInfo {
|
||||
title: string
|
||||
icon: string
|
||||
tags: BTMuli.Genshin.Wiki.BaseAttri[]
|
||||
source: string
|
||||
description: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 技能信息
|
||||
* @since Alpha v0.1.3
|
||||
* @interface SkillInfo
|
||||
* @property {string} type - 技能类型
|
||||
* @property {string} name - 技能名称
|
||||
* @property {string} description - 技能描述
|
||||
* @property {string} icon - 技能图标
|
||||
* @return SkillInfo
|
||||
*/
|
||||
export interface SkillInfo {
|
||||
type: string
|
||||
name: string
|
||||
description: string
|
||||
icon: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 附加信息
|
||||
* @since Alpha v0.1.3
|
||||
* @interface AddInfo
|
||||
* @property {string} type - 附加信息类型
|
||||
* @property {string} name - 附加信息名称
|
||||
* @property {string} description - 附加信息描述
|
||||
* @property {string} icon - 附加信息图标
|
||||
* @return AddInfo
|
||||
*/
|
||||
export interface AddInfo {
|
||||
type: string
|
||||
name: string
|
||||
description: string
|
||||
icon: string
|
||||
}
|
||||
}
|
||||
|
||||
15
src/types/WIKI.d.ts
vendored
15
src/types/WIKI.d.ts
vendored
@@ -117,4 +117,19 @@ declare namespace BTMuli.Genshin.Wiki {
|
||||
source: string[]
|
||||
effect: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 本应用的基础属性类型
|
||||
* @since Alpha v0.1.3
|
||||
* @interface BaseAttri
|
||||
* @property {string} icon - 属性图标
|
||||
* @property {string} name - 属性名称
|
||||
* @property {string} value - 属性值
|
||||
* @return BaseAttri
|
||||
*/
|
||||
export interface BaseAttri {
|
||||
icon: string
|
||||
name: string
|
||||
value: string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user