mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-27 05:49:45 +08:00
🏷️ fix(types): 精简 types,清除无用文件
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
/**
|
||||
* @file interface Base
|
||||
* @description interface Base
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.2
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 地区的枚举
|
||||
* @enum GameCountry
|
||||
* @since Alpha v0.1.2
|
||||
* @property {string} Mondstadt - 蒙德
|
||||
* @property {string} Liyue - 璃月
|
||||
* @property {string} Inazuma - 稻妻
|
||||
* @property {string} Sumaru - 须弥
|
||||
* @property {string} Unknown - 未知
|
||||
* @returns {GameCountry}
|
||||
*/
|
||||
export enum GameCountry {
|
||||
Mondstadt = "Mondstadt",
|
||||
Liyue = "Liyue",
|
||||
Inazuma = "Inazuma",
|
||||
Sumaru = "Sumaru",
|
||||
Unknown = "Unknown",
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
/**
|
||||
* @file interface Calendar.ts
|
||||
* @description 素材日历接口
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.2
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 素材日历接口
|
||||
* @interface CalendarData
|
||||
* @since Alpha v0.1.2
|
||||
* @example Map<Calendar>
|
||||
* @property {Map<CalendarItem>} characters - 该天的角色相关数据
|
||||
* @property {Map<CalendarItem>} weapons - 该天的武器相关数据
|
||||
* @returns {CalendarData}
|
||||
*/
|
||||
export interface CalendarData {
|
||||
characters: Record<number, CalendarItem>
|
||||
weapons: Record<number, CalendarItem>
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 单日单秘境的素材日历接口
|
||||
* @interface CalendarItem
|
||||
* @since Alpha v0.1.2
|
||||
* @property {string} title - 地区 秘境名称
|
||||
* @property {MiniMaterial[]} materials - 素材 url
|
||||
* @property {MiniMaterial[]} contents - 角色/武器 url
|
||||
* @returns {CalendarItem}
|
||||
*/
|
||||
export interface CalendarItem {
|
||||
title: string
|
||||
materials: MiniMaterial[]
|
||||
contents: MiniMaterial[]
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 材料类型
|
||||
* @interface MiniMaterial
|
||||
* @since Alpha v0.1.2
|
||||
* @property {number} id - 角色/武器的 id
|
||||
* @property {number} star - 角色/武器的星级
|
||||
* @property {number} content_id - 观测枢的 content_id
|
||||
* @property {string} name - 名称
|
||||
* @property {string} icon - 图标 url
|
||||
*/
|
||||
export interface MiniMaterial {
|
||||
id?: number
|
||||
star: number
|
||||
content_id: number
|
||||
name: string
|
||||
icon: string
|
||||
}
|
||||
Reference in New Issue
Block a user