mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
feat: update types define
This commit is contained in:
parent
ebdcc41461
commit
4d03610fd3
@ -1,5 +1,5 @@
|
||||
export interface IPublicTypePluginConfig {
|
||||
init(): Promise<void>;
|
||||
destroy?(): Promise<void>;
|
||||
init(): Promise<void> | void;
|
||||
destroy?(): Promise<void> | void;
|
||||
exports?(): any;
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import React from 'react';
|
||||
import { IPublicTypeEditorView } from './editor-view';
|
||||
|
||||
export interface IPublicResourceTypeConfig {
|
||||
@ -6,7 +7,7 @@ export interface IPublicResourceTypeConfig {
|
||||
description?: string;
|
||||
|
||||
/** 资源 icon 标识 */
|
||||
icon?: React.ReactElement;
|
||||
icon?: React.ReactElement | React.FunctionComponent | React.ComponentClass;
|
||||
|
||||
/**
|
||||
* 默认视图类型
|
||||
|
||||
@ -4,7 +4,7 @@ import { IPublicResourceTypeConfig } from './resource-type-config';
|
||||
export interface IPublicTypeResourceType {
|
||||
resourceName: string;
|
||||
|
||||
resourceType: 'editor' | 'webview';
|
||||
resourceType: 'editor' | 'webview' | string;
|
||||
|
||||
(ctx: IPublicModelPluginContext, options: Object): IPublicResourceTypeConfig;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user