mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 12:11:12 -05:00
Implement strict type enforcement plan
This commit is contained in:
@@ -137,7 +137,7 @@ export function AutocompleteSearch({
|
||||
}
|
||||
break;
|
||||
case 'ride':
|
||||
const parkSlug = (searchResult.data as any)?.park?.slug;
|
||||
const parkSlug = (searchResult.data as { park?: { slug?: string } })?.park?.slug;
|
||||
const rideSlug = searchResult.slug;
|
||||
const rideId = searchResult.id;
|
||||
|
||||
@@ -155,7 +155,7 @@ export function AutocompleteSearch({
|
||||
}
|
||||
break;
|
||||
case 'company':
|
||||
const companyType = (searchResult.data as any)?.company_type;
|
||||
const companyType = (searchResult.data as { company_type?: string })?.company_type;
|
||||
const companySlug = searchResult.slug;
|
||||
|
||||
if (companyType && companySlug) {
|
||||
|
||||
Reference in New Issue
Block a user