Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 5500995

Browse files
leo-petruccimartinjagodic
authored andcommitted
Update EditorComponentField to allow list widgets (decaporg#6891)
1 parent c1c6b52 commit 5500995

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
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)