Skip to content

Commit

Permalink
[core] Fix TypeScript type for children
Browse files Browse the repository at this point in the history
This is a follow-up to #20450.

See #20450 (comment)
  • Loading branch information
NMinhNguyen committed Apr 7, 2020
1 parent c776d34 commit 9235bbd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/AvatarGroup/AvatarGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface AvatarGroupProps
/**
* The avatars to stack.
*/
children: React.ReactNode;
children?: React.ReactNode;
/**
* Max avatars to show before +x.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Badge/Badge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface BadgeTypeMap<P = {}, D extends React.ElementType = 'div'> {
/**
* The badge will be added relative to this node.
*/
children: React.ReactNode;
children?: React.ReactNode;
/**
* The color of the component.
* It supports those theme colors that make sense for this component.
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/StepContent/StepContent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface StepContentProps
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, StepContentClasskey> {
active?: boolean;
alternativeLabel?: boolean;
children: React.ReactNode;
children?: React.ReactNode;
completed?: boolean;
last?: boolean;
optional?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/StepLabel/StepLabel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface StepLabelProps
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, StepLabelClasskey> {
active?: boolean;
alternativeLabel?: boolean;
children: React.ReactNode;
children?: React.ReactNode;
completed?: boolean;
disabled?: boolean;
error?: boolean;
Expand Down

0 comments on commit 9235bbd

Please sign in to comment.