Implement strict type enforcement plan

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 14:10:35 +00:00
parent 3bcd9e03fa
commit bc4a444138
25 changed files with 161 additions and 132 deletions

View File

@@ -75,7 +75,7 @@ export function ListDisplay({ list }: ListDisplayProps) {
const getEntityUrl = (item: EnrichedListItem) => {
if (!item.entity) return "#";
const entity = item.entity as any;
const entity = item.entity as { slug?: string };
if (item.entity_type === "park") {
return `/parks/${entity.slug}`;
@@ -114,7 +114,7 @@ export function ListDisplay({ list }: ListDisplayProps) {
to={getEntityUrl(item)}
className="font-medium hover:underline"
>
{(item.entity as any).name}
{(item.entity as { name?: string }).name || 'Unknown'}
</Link>
) : (
<span className="font-medium text-muted-foreground">