GeezerVison is showing github.com — feat: update ts defined · levphon/lowcode-engine@de95b87
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/types/src/shell/api/workspace.ts +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { IPublicModelWindow } from '../model'; |
2 | | -import { IPublicApiPlugins, IPublicModelResource, IPublicResourceList, IPublicTypeDisposable, IPublicTypeResourceType } from '@alilc/lowcode-types'; |
| 2 | +import { IPublicApiPlugins, IPublicApiSkeleton, IPublicModelResource, IPublicResourceList, IPublicTypeDisposable, IPublicTypeResourceType } from '@alilc/lowcode-types'; |
3 | 3 |
|
4 | 4 | export interface IPublicApiWorkspace< |
5 | 5 | Plugins = IPublicApiPlugins, |
| 6 | + Skeleton = IPublicApiSkeleton, |
6 | 7 | ModelWindow = IPublicModelWindow, |
7 | 8 | Resource = IPublicModelResource, |
8 | 9 | > { |
@@ -15,6 +16,8 @@ export interface IPublicApiWorkspace< |
15 | 16 |
|
16 | 17 | plugins: Plugins; |
17 | 18 |
|
| 19 | + skeleton: Skeleton; |
| 20 | + |
18 | 21 | /** 当前设计器的编辑窗口 */ |
19 | 22 | windows: ModelWindow[]; |
20 | 23 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: packages/types/src/shell/type/command.ts +3-15Lines changed: 3 additions & 15 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { IPublicTypePropType } from './prop-types'; |
| 2 | + |
1 | 3 | // 定义命令处理函数的参数类型 |
2 | 4 | export interface IPublicTypeCommandHandlerArgs { |
3 | 5 | [key: string]: any; |
4 | 6 | } |
5 | 7 |
|
6 | | -// 定义复杂参数类型的接口 |
7 | | -export interface IPublicTypeCommandPropType { |
8 | | - |
9 | | - /** |
10 | | - * 参数基础类型 |
11 | | - */ |
12 | | - type: string; |
13 | | - |
14 | | - /** |
15 | | - * 参数是否必需(可选) |
16 | | - */ |
17 | | - isRequired?: boolean; |
18 | | -} |
19 | | - |
20 | 8 | // 定义命令参数的接口 |
21 | 9 | export interface IPublicTypeCommandParameter { |
22 | 10 |
|
@@ -28,7 +16,7 @@ export interface IPublicTypeCommandParameter { |
28 | 16 | /** |
29 | 17 | * 参数类型或详细类型描述 |
30 | 18 | */ |
31 | | - propType: string | IPublicTypeCommandPropType; |
| 19 | + propType: string | IPublicTypePropType; |
32 | 20 |
|
33 | 21 | /** |
34 | 22 | * 参数描述 |
|