diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aaa77dddf3..4a1ef3f5a30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - `EuiToken` now exports enumerated constants for `SHAPES` and `COLORS` ([#1301](https://github.com/elastic/eui/pull/1301)) - Added mixins for `EuiCallOut` coloring and `EuiTooltip` styles ([#1305](https://github.com/elastic/eui/pull/1305)) +- Improve TypeScript definitions for `EuiTableRowCellProps` ([#1310](https://github.com/elastic/eui/pull/1310)) ## [`5.0.1`](https://github.com/elastic/eui/tree/v5.0.1) diff --git a/src/components/table/index.d.ts b/src/components/table/index.d.ts index b22b9cccae5..2397846aa6e 100644 --- a/src/components/table/index.d.ts +++ b/src/components/table/index.d.ts @@ -11,7 +11,6 @@ import { ThHTMLAttributes, TdHTMLAttributes } from 'react'; -import { EuiTableRowCellProps } from '@elastic/eui'; declare module '@elastic/eui' { /** @@ -132,13 +131,20 @@ declare module '@elastic/eui' { */ export interface EuiTableRowCellProps { - truncateText?: boolean; align?: HorizontalAlignment; + hasActions?: boolean; + header?: string; + hideForMobile?: boolean; + isExpander?: boolean; + isMobileFullWidth?: boolean; + isMobileHeader?: boolean; + showOnHover?: boolean; textOnly?: boolean; + truncateText?: boolean; } export const EuiTableRowCell: SFC< - CommonProps & HTMLAttributes & EuiTableRowCellProps + CommonProps & TdHTMLAttributes & EuiTableRowCellProps >; /**