From 171c8a404c4e462e2e3a6d719feb7b4dfbefd7cb Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 1 Sep 2024 23:39:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(types):=20=E6=B7=BB=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=AE=B1=E4=BF=A1=E6=81=AF=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/web.d.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/types/web.d.ts b/types/web.d.ts index 6c66d6b..dda49fa 100644 --- a/types/web.d.ts +++ b/types/web.d.ts @@ -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 {