Skip to content

Commit

Permalink
chore: fix types of component interface (#7097)
Browse files Browse the repository at this point in the history
  • Loading branch information
sscaff1 authored Mar 7, 2024
1 parent b18b51b commit 77bec1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/decap-cms-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77bec1f

Please sign in to comment.