Skip to content

Commit

Permalink
fix: prefer interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jherdman authored and haideralsh committed Dec 13, 2023
1 parent 8ab0d5f commit 723858f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Table/Table.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import PropTypes from "prop-types";

export type RowType = unknown;

export type CellInfoType = {
export interface CellInfoType {
cellData: unknown;
column: ColumnType;
row: RowType;
};
}

type ColumnInfoType = {
interface ColumnInfoType {
align?: ColumnAlignment;
label: string;
dataKey?: Key;
width?: string | number;
};
}

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

Expand Down

0 comments on commit 723858f

Please sign in to comment.