Closed mathiasandresen closed 3 months ago
I just ran into this same issue when referencing the documentation for registering an editor component: https://decapcms.org/docs/custom-widgets/
@mathiasandresen great fix! 👍 I also ran into this issue.
released as decap-cms@3.1.5
Summary It was not possible for me to add new widgets with correct typing, since I was required to set
field
andfields
for non 'list' widgets. So I modified the types to be a discriminated union, that only allows settingfield
andfield
when widget is equal to'list'
.Test plan
Checklist
Please add a
x
inside each checkbox:A picture of a cute animal (not mandatory but encouraged)