♻️ 修改更新弹窗机制 #45

This commit is contained in:
BTMuli
2023-10-15 17:34:18 +08:00
parent 068f8c7647
commit 7b76432b1e
3 changed files with 38 additions and 6 deletions

View File

@@ -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;
}