From 77bec1f941975880fdbfe95058fa03a78d4ea3ee Mon Sep 17 00:00:00 2001 From: Steven Scaffidi Date: Thu, 7 Mar 2024 06:48:35 -0600 Subject: [PATCH] chore: fix types of component interface (#7097) --- packages/decap-cms-core/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/decap-cms-core/index.d.ts b/packages/decap-cms-core/index.d.ts index edb8748a73d2..6dc498a9fb40 100644 --- a/packages/decap-cms-core/index.d.ts +++ b/packages/decap-cms-core/index.d.ts @@ -426,12 +426,12 @@ declare module 'decap-cms-core' { export interface EditorComponentOptions { id: string; label: string; - fields: EditorComponentField[]; + fields?: EditorComponentField[]; pattern: RegExp; allow_add?: boolean; fromBlock: (match: RegExpMatchArray) => any; toBlock: (data: any) => string; - toPreview: (data: any) => string; + toPreview: (data: any) => string | JSX.Element; } export interface PreviewStyleOptions {