From dc2ad803e4b34aa651e8698953655e75e42191f6 Mon Sep 17 00:00:00 2001 From: Maksim Sviridov Date: Thu, 3 Aug 2023 12:36:53 +0300 Subject: [PATCH] fix(Table): combine `TableRow` props into single type def --- src/components/Table.tsx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/components/Table.tsx b/src/components/Table.tsx index 73193ee8..df63ffef 100644 --- a/src/components/Table.tsx +++ b/src/components/Table.tsx @@ -51,19 +51,12 @@ export interface TableProps extends GapProps { } export type TableRowProps = GapProps & - Partial & - ( - | { - interactive?: false | never; - focused?: never; - } - | { - /** Apply interactive styles: hover */ - interactive: true; - /** Prop that mark current row as focused, ex. for keyboard navigation */ - focused: boolean; - } - ); + Partial & { + /** Apply interactive styles: hover */ + interactive?: boolean; + /** Prop that mark current row as focused, ex. for keyboard navigation */ + focused?: boolean; + }; const mapRuleSet: { [key in AlignProps['align'] | JustifyProps['justify']]: string } = { baseline: 'baseline',