Skip to content

Commit eefdd37

Browse files
authored
Update EditorComponentField to allow list widgets (#6891)
1 parent 18ef773 commit eefdd37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/decap-cms-core/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,14 @@ declare module 'decap-cms-core' {
412412
name: string;
413413
label: string;
414414
widget: string;
415+
/**
416+
* Used if widget === "list" to create a flat array
417+
*/
418+
field: EditorComponentField;
419+
/**
420+
* Used if widget === "list" to create an array of objects
421+
*/
422+
fields: EditorComponentField[];
415423
}
416424

417425
export interface EditorComponentOptions {

0 commit comments

Comments
 (0)