Skip to content

Commit de95b87

Browse files
liujupingJackLian
authored andcommitted
feat: update ts defined
1 parent 43921ce commit de95b87

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

packages/types/src/shell/api/workspace.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
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';
33

44
export interface IPublicApiWorkspace<
55
Plugins = IPublicApiPlugins,
6+
Skeleton = IPublicApiSkeleton,
67
ModelWindow = IPublicModelWindow,
78
Resource = IPublicModelResource,
89
> {
@@ -15,6 +16,8 @@ export interface IPublicApiWorkspace<
1516

1617
plugins: Plugins;
1718

19+
skeleton: Skeleton;
20+
1821
/** 当前设计器的编辑窗口 */
1922
windows: ModelWindow[];
2023

packages/types/src/shell/type/command.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1+
import { IPublicTypePropType } from './prop-types';
2+
13
// 定义命令处理函数的参数类型
24
export interface IPublicTypeCommandHandlerArgs {
35
[key: string]: any;
46
}
57

6-
// 定义复杂参数类型的接口
7-
export interface IPublicTypeCommandPropType {
8-
9-
/**
10-
* 参数基础类型
11-
*/
12-
type: string;
13-
14-
/**
15-
* 参数是否必需(可选)
16-
*/
17-
isRequired?: boolean;
18-
}
19-
208
// 定义命令参数的接口
219
export interface IPublicTypeCommandParameter {
2210

@@ -28,7 +16,7 @@ export interface IPublicTypeCommandParameter {
2816
/**
2917
* 参数类型或详细类型描述
3018
*/
31-
propType: string | IPublicTypeCommandPropType;
19+
propType: string | IPublicTypePropType;
3220

3321
/**
3422
* 参数描述

0 commit comments

Comments
 (0)