decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.66k stars 3.02k forks source link

chore: fix types of component interface #7097

Closed sscaff1 closed 4 months ago

sscaff1 commented 4 months ago

Summary

The interface EditorComponentOptions does not match the documentation or usage. toPreview should be able to return a JSX.Element. Fields should be optional (for example, you create a component like a horizontal rule that would have no fields).

Test plan

This is just changing types.

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)