Skip to content

Commit b476702

Browse files
authored
fix(TableExpandHeader): update props types (#18729)
1 parent d355625 commit b476702

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/react/src/components/DataTable/TableExpandHeader.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright IBM Corp. 2016, 2023
2+
* Copyright IBM Corp. 2016, 2025
33
*
44
* This source code is licensed under the Apache-2.0 license found in the
55
* LICENSE file in the root directory of this source tree.
@@ -58,20 +58,21 @@ export type TableExpandHeaderPropsBase = {
5858

5959
export type TableExpandHeaderPropsWithToggle = Omit<
6060
TableExpandHeaderPropsBase,
61-
'ariaLabel' | 'aria-label' | 'enableToggle' | 'onExpand'
61+
'aria-label' | 'enableToggle' | 'onExpand'
6262
> & {
6363
enableToggle: true;
64-
ariaLabel: string;
6564
['aria-label']: string;
6665
onExpand(event: React.MouseEvent<HTMLButtonElement>): void;
6766
};
6867

6968
export type TableExpandHeaderPropsWithExpando = Omit<
7069
TableExpandHeaderPropsBase,
71-
'ariaLabel' | 'aria-label' | 'enableExpando' | 'onExpand'
70+
'aria-label' | 'enableExpando' | 'onExpand'
7271
> & {
72+
/**
73+
* @deprecated The enableExpando prop is being replaced by `enableToggle`
74+
*/
7375
enableExpando: true;
74-
ariaLabel: string;
7576
['aria-label']: string;
7677
onExpand(event: React.MouseEvent<HTMLButtonElement>): void;
7778
};

0 commit comments

Comments
 (0)