chore(types): 添加工具箱信息类型定义

This commit is contained in:
2024-09-01 23:39:22 +08:00
parent e56ff2ce07
commit 171c8a404c

30
types/web.d.ts vendored
View File

@@ -33,6 +33,36 @@ declare global {
_key?: string;
};
/** 工具箱分类 */
interface ToolboxCategory {
/** 分类唯一 ID */
id: string;
/** 分类名称 */
title: string;
/** 工具列表 */
items: ToolboxItem[];
}
/** 工具箱工具信息 */
interface ToolboxItem {
/** 工具唯一 ID */
id: string;
/** 工具名称 */
title: string;
/** 工具简介 */
desc: string;
/** 组件路径 */
component: string;
/** 创建日期 */
createdAt: string;
/** 更新日期 */
updatedAt: string;
/** 版本号 */
version: string;
/** 是否启用 */
enabled: boolean;
}
// window
interface Window {