feat: 添加类型注释

This commit is contained in:
2025-01-20 16:05:50 +08:00
parent e5a4381b04
commit 60724a923e
27 changed files with 1364 additions and 249 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Low } from 'lowdb';
/**
* 基础数据库
* @returns
*/
export declare const getDb: () => Promise<Low<unknown>>;
/**
* 文件资源库
* @returns
*/
export declare const getResourceDb: () => Promise<Low<unknown>>;
/**
* 备份记录存储库
* @returns
*/
export declare const getBackupDb: () => Promise<Low<unknown>>;
/**
* 日志存储库
* @returns
*/
export declare const getLogDb: () => Promise<Low<unknown>>;
export default getDb;