fix: customization types (#4321)

This commit is contained in:
Pedro H. Köhler authored and GitHub committed 2024-07-31 11:21:51 -04:00
1 parent 50669867c9
commit 72bef63ef6
2 files changed
+11 -2

No files matched your search

@@ -9,6 +9,7 @@ export interface BaseCustomization extends Obj {
description?: string;
label?: string;
commands?: Command[];
content?: (...props: any) => React.JSX.Element;
}
export interface LabelCustomization extends BaseCustomization {
@@ -23,11 +24,16 @@ export interface CommandCustomization extends BaseCustomization {
commands: Command[];
}
export interface ComponentCustomization extends BaseCustomization {
content: (...props: any) => React.JSX.Element;
}
export type Customization =
| BaseCustomization
| LabelCustomization
| CommandCustomization
| CodeCustomization;
| CodeCustomization
| ComponentCustomization;
export default Customization;