Skip to content

Commit dcd8312

Browse files
authored
fix(react): declare DefinitionTooltip's children prop as required (#19938)
Declare `DefinitionTooltip`'s `children` prop as non-nullable in TypeScript to match the PropTypes `isRequired` definition, which is the correct one per Nikhil Tomar [1]. Fixes #19834. [1] #19834 (comment)
1 parent 6ab7744 commit dcd8312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/components/Tooltip/DefinitionTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface DefinitionTooltipProps
3434
/**
3535
* The `children` prop will be used as the value that is being defined
3636
*/
37-
children?: React.ReactNode;
37+
children: React.ReactNode;
3838

3939
/**
4040
* Specify an optional className to be applied to the container node

0 commit comments

Comments
 (0)