admin-vben5/packages/types
2024-08-09 14:41:05 +08:00
..
src chore: 脚手架 2024-08-07 08:57:56 +08:00
global.d.ts chore: 脚手架 2024-08-07 08:57:56 +08:00
package.json chore(deps): bump the non-breaking-changes group with 14 updates (#4092) 2024-08-09 14:31:48 +08:00
README.md chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages 2024-07-14 22:51:10 +08:00
tsconfig.json chore: update packages 2024-07-30 21:00:20 +08:00

@vben/types

用于多个 app 公用的工具类型,继承了 @vben-core/typings 的所有能力。业务上有通用的类型定义可以放在这里。

用法

添加依赖

# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/types --workspace

使用

// 推荐加上 type
import type { SelectOption } from '@vben/types';