mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
♻️ 代码结构调整
This commit is contained in:
25
src/types/App/Store.d.ts
vendored
Normal file
25
src/types/App/Store.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @file types/App/Store.d.ts
|
||||
* @description 涉及store但是没有特定的store模块的类型定义文件
|
||||
* @since Beta v0.6.5
|
||||
*/
|
||||
|
||||
declare namespace TGApp.App.Store {
|
||||
/**
|
||||
* @description 咨讯类型枚举
|
||||
* @since Beta v0.6.5
|
||||
* @enum {string}
|
||||
*/
|
||||
enum NewsTypeEnum {
|
||||
notice = "1",
|
||||
activity = "2",
|
||||
news = "3",
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 咨讯类型枚举
|
||||
* @since Beta v0.6.5
|
||||
* @type {keyof typeof NewsTypeEnum}
|
||||
*/
|
||||
type NewsType = keyof typeof NewsTypeEnum;
|
||||
}
|
||||
13
src/types/Plugins/UIAF.d.ts
vendored
13
src/types/Plugins/UIAF.d.ts
vendored
@@ -57,17 +57,4 @@ declare namespace TGApp.Plugins.UIAF {
|
||||
current: number;
|
||||
status: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @interface Backup
|
||||
* @description 数据备份时的格式,用于标识不同存档
|
||||
* @since Beta v0.6.0
|
||||
* @property {number} uid - 存档UID
|
||||
* @property {Achievement[]} data - 存档数据
|
||||
* @returns Backup
|
||||
*/
|
||||
interface Backup {
|
||||
uid: number;
|
||||
data: Achievement[];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user