Skip to content

Commit

Permalink
fix(EuiBasicTable): add extends object generics in missing places
Browse files Browse the repository at this point in the history
  • Loading branch information
tkajtoch committed Dec 19, 2023
1 parent b6202ac commit b58dc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/basic_table/action_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export type Action<T extends object> =
| DefaultItemAction<T>
| CustomItemAction<T>;

export const isCustomItemAction = <T>(
export const isCustomItemAction = <T extends object>(
action: DefaultItemAction<T> | CustomItemAction<T>
): action is CustomItemAction<T> => {
return action.hasOwnProperty('render');
Expand Down
2 changes: 1 addition & 1 deletion src/components/basic_table/default_item_action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface DefaultItemActionProps<T extends object> {
className?: string;
}

export const DefaultItemAction = <T,>({
export const DefaultItemAction = <T extends object>({
action,
enabled,
item,
Expand Down

0 comments on commit b58dc38

Please sign in to comment.