Skip to content

Commit

Permalink
Update EditorComponentField to allow list widgets (#6891)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-petrucci authored Aug 31, 2023
1 parent 18ef773 commit eefdd37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/decap-cms-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,14 @@ declare module 'decap-cms-core' {
name: string;
label: string;
widget: string;
/**
* Used if widget === "list" to create a flat array
*/
field: EditorComponentField;
/**
* Used if widget === "list" to create an array of objects
*/
fields: EditorComponentField[];
}

export interface EditorComponentOptions {
Expand Down

0 comments on commit eefdd37

Please sign in to comment.