decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

chore: fix types of component interface

Open sscaff1 opened this issue 1 year ago • 0 comments

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)

sscaff1 avatar Feb 12 '24 17:02 sscaff1