diff --git a/types/carbon-components-react/carbon-components-react-tests.tsx b/types/carbon-components-react/carbon-components-react-tests.tsx index 0d022b761d..b4bbf9b6c2 100644 --- a/types/carbon-components-react/carbon-components-react-tests.tsx +++ b/types/carbon-components-react/carbon-components-react-tests.tsx @@ -12,6 +12,7 @@ import { TableBatchActions, TableHeader, TableRow, + TileGroup, TooltipDefinition, TextArea, TextInput, @@ -268,6 +269,20 @@ const uisLinkT5 = ( element={TestComp3} someProp="asdf">Testing Overwrite ); +// TileGroup +// Value nor name can be undefined +let value: string|number = 5; +let name = "old name"; +const tileGroupA = ( + { + value = newVal; + name = newName; + }} + /> +); + // TooltipDefinition const tooltipDefHasAlign = ( diff --git a/types/carbon-components-react/lib/components/TileGroup/TileGroup.d.ts b/types/carbon-components-react/lib/components/TileGroup/TileGroup.d.ts index 6089f6fbf1..11aef5b232 100644 --- a/types/carbon-components-react/lib/components/TileGroup/TileGroup.d.ts +++ b/types/carbon-components-react/lib/components/TileGroup/TileGroup.d.ts @@ -12,7 +12,7 @@ interface InheritedProps { export interface TileGroupProps extends InheritedProps { defaultSelected?: TileGroupProps["valueSelected"], legend?: string, - onChange?(value: TileGroupProps["valueSelected"], name: TileGroupProps["name"], event: RadioTileChangeEvent): void, + onChange?(value: NonNullable, name: NonNullable, event: RadioTileChangeEvent): void, valueSelected?: string | number, }