feat: update ts defined

This commit is contained in:
liujuping 2024-01-31 18:53:23 +08:00 committed by 林熠
parent 43921cea2d
commit de95b87b1e
2 changed files with 7 additions and 16 deletions

View File

@ -1,8 +1,9 @@
import { IPublicModelWindow } from '../model';
import { IPublicApiPlugins, IPublicModelResource, IPublicResourceList, IPublicTypeDisposable, IPublicTypeResourceType } from '@alilc/lowcode-types';
import { IPublicApiPlugins, IPublicApiSkeleton, IPublicModelResource, IPublicResourceList, IPublicTypeDisposable, IPublicTypeResourceType } from '@alilc/lowcode-types';
export interface IPublicApiWorkspace<
Plugins = IPublicApiPlugins,
Skeleton = IPublicApiSkeleton,
ModelWindow = IPublicModelWindow,
Resource = IPublicModelResource,
> {
@ -15,6 +16,8 @@ export interface IPublicApiWorkspace<
plugins: Plugins;
skeleton: Skeleton;
/** 当前设计器的编辑窗口 */
windows: ModelWindow[];

View File

@ -1,22 +1,10 @@
import { IPublicTypePropType } from './prop-types';
// 定义命令处理函数的参数类型
export interface IPublicTypeCommandHandlerArgs {
[key: string]: any;
}
// 定义复杂参数类型的接口
export interface IPublicTypeCommandPropType {
/**
*
*/
type: string;
/**
*
*/
isRequired?: boolean;
}
// 定义命令参数的接口
export interface IPublicTypeCommandParameter {
@ -28,7 +16,7 @@ export interface IPublicTypeCommandParameter {
/**
*
*/
propType: string | IPublicTypeCommandPropType;
propType: string | IPublicTypePropType;
/**
*