GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: update ts defined · levphon/lowcode-engine@de95b87

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/types/src/shell
    • api
      • workspace.ts
    • type
      • command.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: packages/types/src/shell/api/workspace.ts
+4-1Lines 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

Collapse file

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

Copy file name to clipboardExpand all lines: packages/types/src/shell/type/command.ts
+3-15Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.