refactor domain types to rename itemType

This commit is contained in:
jeffvli
2025-11-13 22:04:00 -08:00
parent 173e00af3d
commit 164332d752
9 changed files with 54 additions and 40 deletions
@@ -36,8 +36,8 @@ export const ActionsColumn = (props: ItemTableListInnerColumn) => {
color: 'muted',
size: 'md',
}}
onDoubleClick={handleActionDoubleClick}
onClick={handleActionClick}
onDoubleClick={handleActionDoubleClick}
size="xs"
variant="subtle"
/>
@@ -70,8 +70,8 @@ const hasRequiredStateItemProperties = (
typeof (item as any).id === 'string' &&
'_serverId' in item &&
typeof (item as any)._serverId === 'string' &&
'itemType' in item &&
typeof (item as any).itemType === 'string' &&
'_itemType' in item &&
typeof (item as any)._itemType === 'string' &&
'rowId' in item &&
typeof (item as any).rowId === 'string'
);
@@ -1126,7 +1126,7 @@ export const ItemTableList = ({
typeof item === 'object' &&
item !== null &&
'_serverId' in item &&
'itemType' in item
'_itemType' in item
) {
return item as ItemListStateItemWithRequiredProperties;
}