Skip to content

Commit 201d4b6

Browse files
authored
Merge pull request #8 from iRoachie/patch-1
Typings - Fixes typescript errors for children prop
2 parents b5fa195 + fa2af8e commit 201d4b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ interface MaterialDialogStatic extends Dialog {
6868
/**
6969
* Content of the dialog
7070
*/
71-
children: JSX.Element
71+
children?: JSX.Element
7272
}
7373

7474

@@ -110,4 +110,4 @@ interface MultiPickerMaterialDialogStatic extends Dialog {
110110

111111
export class MaterialDialog extends React.Component<MaterialDialogStatic, null> {}
112112
export class SinglePickerMaterialDialog extends React.Component<SinglePickerMaterialDialogStatic, null> {}
113-
export class MultiPickerMaterialDialog extends React.Component<MultiPickerMaterialDialogStatic, null> {}
113+
export class MultiPickerMaterialDialog extends React.Component<MultiPickerMaterialDialogStatic, null> {}

0 commit comments

Comments
 (0)