We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b3faa commit 528df78Copy full SHA for 528df78
src/types/system.ts
@@ -1,14 +1,19 @@
1
import { PropChangedAction } from 'plugins/props-change-watcher/actions';
2
import { Action } from 'types/actions';
3
+import { ComponentType } from 'react';
4
5
export interface SystemValues {
- getComponent: () => void;
6
+ getComponent: (
7
+ componentName: string,
8
+ container?: boolean,
9
+ config?: object
10
+ ) => ComponentType | null;
11
editorSelectors: {
12
selectContent: () => string;
13
selectInferFileNameWithExtensionFromContent: () => string;
14
};
15
editorActions: {
- convertContentToJSON: (content: string) => Action<string>;
16
+ convertContentToJSON: (content: string) => Action<string | Error>;
17
setContent: (content: string) => Action<string>;
18
propChanged: PropChangedAction;
19
0 commit comments