Skip to content

Commit 232a291

Browse files
committed
feat(ecs): extend ECElement type with name, description, example, and updated params def
1 parent 669c180 commit 232a291

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

packages/ecs/src/editor-manifest.type.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ type ECElementDefaults<Type, Default> = {
1010
*/
1111
type: Type;
1212

13+
/**
14+
* Name of the element
15+
*/
16+
name: string;
17+
18+
/**
19+
* Description of the element
20+
*/
21+
description?: string;
22+
23+
/**
24+
* Example of the element
25+
*/
26+
example?: Default;
27+
1328
/**
1429
* Is the element optional
1530
* @default false
@@ -86,7 +101,7 @@ export type EditorComponentManifest = {
86101
/**
87102
* Parameters of the component
88103
*/
89-
params: ECElement[];
104+
params: Record<string, ECElement>;
90105
};
91106

92107
/**

0 commit comments

Comments
 (0)