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 1
1
export interface IPublicTypePluginConfig {
2
- init ( ) : Promise < void > ;
3
- destroy ?( ) : Promise < void > ;
2
+ init ( ) : Promise < void > | void ;
3
+ destroy ?( ) : Promise < void > | void ;
4
4
exports ?( ) : any ;
5
5
}
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
1
2
import { IPublicTypeEditorView } from './editor-view' ;
2
3
3
4
export interface IPublicResourceTypeConfig {
@@ -6,7 +7,7 @@ export interface IPublicResourceTypeConfig {
6
7
description ?: string ;
7
8
8
9
/** 资源 icon 标识 */
9
- icon ?: React . ReactElement ;
10
+ icon ?: React . ReactElement | React . FunctionComponent | React . ComponentClass ;
10
11
11
12
/**
12
13
* 默认视图类型
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { IPublicResourceTypeConfig } from './resource-type-config';
4
4
export interface IPublicTypeResourceType {
5
5
resourceName : string ;
6
6
7
- resourceType : 'editor' | 'webview' ;
7
+ resourceType : 'editor' | 'webview' | string ;
8
8
9
9
( ctx : IPublicModelPluginContext , options : Object ) : IPublicResourceTypeConfig ;
10
10
}
You can’t perform that action at this time.
0 commit comments