Skip to content

Commit 77bec1f

Browse files
authored
chore: fix types of component interface (#7097)
1 parent b18b51b commit 77bec1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ declare module 'decap-cms-core' {
426426
export interface EditorComponentOptions {
427427
id: string;
428428
label: string;
429-
fields: EditorComponentField[];
429+
fields?: EditorComponentField[];
430430
pattern: RegExp;
431431
allow_add?: boolean;
432432
fromBlock: (match: RegExpMatchArray) => any;
433433
toBlock: (data: any) => string;
434-
toPreview: (data: any) => string;
434+
toPreview: (data: any) => string | JSX.Element;
435435
}
436436

437437
export interface PreviewStyleOptions {

0 commit comments

Comments
 (0)