File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
packages/types/src/shell/type Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11export interface IPublicTypePluginConfig {
2- init ( ) : Promise < void > ;
3- destroy ?( ) : Promise < void > ;
2+ init ( ) : Promise < void > | void ;
3+ destroy ?( ) : Promise < void > | void ;
44 exports ?( ) : any ;
55}
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
12import { IPublicTypeEditorView } from './editor-view' ;
23
34export interface IPublicResourceTypeConfig {
@@ -6,7 +7,7 @@ export interface IPublicResourceTypeConfig {
67 description ?: string ;
78
89 /** 资源 icon 标识 */
9- icon ?: React . ReactElement ;
10+ icon ?: React . ReactElement | React . FunctionComponent | React . ComponentClass ;
1011
1112 /**
1213 * 默认视图类型
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { IPublicResourceTypeConfig } from './resource-type-config';
44export interface IPublicTypeResourceType {
55 resourceName : string ;
66
7- resourceType : 'editor' | 'webview' ;
7+ resourceType : 'editor' | 'webview' | string ;
88
99 ( ctx : IPublicModelPluginContext , options : Object ) : IPublicResourceTypeConfig ;
1010}
You can’t perform that action at this time.
0 commit comments