Skip to content

Commit

Permalink
Fix #5692: Content is optional (#5693)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 5, 2024
1 parent 90b6936 commit 3166ee8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/lib/confirmpopup/confirmpopup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export interface ConfirmPopupProps {
* @param {ContentProps} props - The values of dialog.
* @return {React.ReactNode}
*/
content: React.ReactNode | ((props: ContentProps) => React.ReactNode);
content?: React.ReactNode | ((props: ContentProps) => React.ReactNode);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dialog/dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export interface DialogProps {
* @param {ContentProps} props - The values of dialog.
* @return {React.ReactNode}
*/
content: React.ReactNode | ((props: ContentProps) => React.ReactNode);
content?: React.ReactNode | ((props: ContentProps) => React.ReactNode);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion components/lib/sidebar/sidebar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export interface SidebarProps extends Omit<React.DetailedHTMLProps<React.HTMLAtt
* @param {ContentProps} props - The values of sidebar.
* @return {React.ReactNode}
*/
content: React.ReactNode | ((props: ContentProps) => React.ReactNode);
content?: React.ReactNode | ((props: ContentProps) => React.ReactNode);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion components/lib/toast/toast.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export interface ToastProps extends Omit<React.DetailedHTMLProps<React.HTMLAttri
* @param {ContentProps} props - The values of toast.
* @return {React.ReactNode}
*/
content: React.ReactNode | ((props: ContentProps) => React.ReactNode);
content?: React.ReactNode | ((props: ContentProps) => React.ReactNode);
}

/**
Expand Down

0 comments on commit 3166ee8

Please sign in to comment.