From b15ef481eca9a5c01d0cf602c296affd071a6fc0 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Wed, 9 Feb 2022 14:04:28 -0600 Subject: [PATCH 1/2] return type for resolveWidthAsStyle --- src/components/table/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/table/utils.ts b/src/components/table/utils.ts index f6d788e9909..40aaed82cb4 100644 --- a/src/components/table/utils.ts +++ b/src/components/table/utils.ts @@ -14,7 +14,7 @@ export const WARNING_MESSAGE = export const resolveWidthAsStyle = ( style: CSSProperties = {}, width?: string | number -) => { +): CSSProperties => { const { width: styleWidth, ...styleRest } = style; let attrWidth = width; if ( From b91cc23634aa3117b523d698a3fb1b37d821b19d Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Wed, 9 Feb 2022 15:07:25 -0600 Subject: [PATCH 2/2] CL --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f6b17fcf33..598595f2da2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`main`](https://github.com/elastic/eui/tree/main) - Refactored `EuiSuggest` to use `EuiSelectable` ([#5157](https://github.com/elastic/eui/pull/5157)) +- Added a return type to `EuiTable` `resolveWidthAsStyle` util ([#5615](https://github.com/elastic/eui/pull/5615)) **Bug fixes**