From 9c03df91049b0794e69dac1b69c391f5f46a25d7 Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Tue, 19 Dec 2023 17:35:25 +0100 Subject: [PATCH] fix(EuiBasicTable): add `extends object` generics in missing places --- src/components/basic_table/action_types.ts | 2 +- src/components/basic_table/default_item_action.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/basic_table/action_types.ts b/src/components/basic_table/action_types.ts index 0c026404398..cb8d6981cbf 100644 --- a/src/components/basic_table/action_types.ts +++ b/src/components/basic_table/action_types.ts @@ -90,7 +90,7 @@ export type Action = | DefaultItemAction | CustomItemAction; -export const isCustomItemAction = ( +export const isCustomItemAction = ( action: DefaultItemAction | CustomItemAction ): action is CustomItemAction => { return action.hasOwnProperty('render'); diff --git a/src/components/basic_table/default_item_action.tsx b/src/components/basic_table/default_item_action.tsx index dcc6275b7af..667da0589d7 100644 --- a/src/components/basic_table/default_item_action.tsx +++ b/src/components/basic_table/default_item_action.tsx @@ -31,7 +31,7 @@ export interface DefaultItemActionProps { className?: string; } -export const DefaultItemAction = ({ +export const DefaultItemAction = ({ action, enabled, item,