Skip to content

Commit 4fe1549

Browse files
jherdmanhaideralsh
authored andcommitted
fix: prefer interfaces
1 parent 1f92579 commit 4fe1549

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Table/Table.types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import PropTypes from "prop-types";
33

44
export type RowType = unknown;
55

6-
export type CellInfoType = {
6+
export interface CellInfoType {
77
cellData: unknown;
88
column: ColumnType;
99
row: RowType;
10-
};
10+
}
1111

12-
type ColumnInfoType = {
12+
interface ColumnInfoType {
1313
align?: ColumnAlignment;
1414
label: string;
1515
dataKey?: Key;
1616
width?: string | number;
17-
};
17+
}
1818

1919
type ColumnAlignment = "left" | "right" | "center";
2020

0 commit comments

Comments
 (0)