mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
♻️ 修改更新弹窗机制 #45
This commit is contained in:
26
src/types/Sqlite/AppData.d.ts
vendored
26
src/types/Sqlite/AppData.d.ts
vendored
@@ -1,22 +1,38 @@
|
||||
/**
|
||||
* @file types Sqlite AppData.d.ts
|
||||
* @description Sqlite AppData 类型定义文件
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.5
|
||||
* @since Beta v0.3.3
|
||||
*/
|
||||
|
||||
declare namespace TGApp.Sqlite.AppData {
|
||||
/**
|
||||
* @description AppData 数据库 - key 枚举
|
||||
* @since Beta v0.3.3
|
||||
* @enum {string}
|
||||
* @property {string} APP_VERSION - App 版本
|
||||
* @property {string} DATA_UPDATED - 数据库更新时间
|
||||
* @property {string} COOKIE - Cookie
|
||||
* @property {string} USER_INFO - 用户信息
|
||||
* @return {string}
|
||||
*/
|
||||
enum DBKey {
|
||||
APP_VERSION = "appVersion",
|
||||
DATA_UPDATED = "dataUpdated",
|
||||
COOKIE = "cookie",
|
||||
USER_INFO = "userInfo",
|
||||
}
|
||||
|
||||
/**
|
||||
* @description AppData 数据
|
||||
* @since Alpha v0.1.5
|
||||
* @since Beta v0.3.3
|
||||
* @interface Item
|
||||
* @property {string} key - 键
|
||||
* @property {DBKey} key - 键
|
||||
* @property {string} value - 值
|
||||
* @property {string} updated - 数据库更新时间
|
||||
* @return Item
|
||||
*/
|
||||
export interface Item {
|
||||
key: string;
|
||||
key: DBKey;
|
||||
value: string;
|
||||
updated: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user