Skip to content

Commit e9f311e

Browse files
committed
Prefer interface over type
1 parent 538017b commit e9f311e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/dataviews/src/view-list.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type {
2828
ViewList as ViewListType,
2929
} from './types';
3030

31-
type ListViewProps = {
31+
interface ListViewProps {
3232
view: ViewListType;
3333
fields: NormalizedField[];
3434
data: Data;
@@ -37,17 +37,17 @@ type ListViewProps = {
3737
onSelectionChange: ( selection: Item[] ) => void;
3838
selection: Item[];
3939
id: string;
40-
};
40+
}
4141

42-
type ListViewItemProps = {
42+
interface ListViewItemProps {
4343
id: string;
4444
item: Item;
4545
isSelected: boolean;
4646
onSelect: ( item: Item ) => void;
4747
mediaField?: NormalizedField;
4848
primaryField?: NormalizedField;
4949
visibleFields: NormalizedField[];
50-
};
50+
}
5151

5252
const {
5353
useCompositeStoreV2: useCompositeStore,

0 commit comments

Comments
 (0)