Fix frontend build TypeScript errors
Fixed multiple TypeScript type errors that were preventing the build from working properly: 1. Fixed infinite query type issue in forecasting.ts by excluding 'select' from options 2. Fixed Card variant type errors by changing contentPadding="default" to contentPadding="md" 3. Fixed router export issues by removing non-existent exports (ROUTE_CONFIGS, getRoutesForRole, etc.) 4. Fixed router readonly array type issues by updating RouteConfig interface 5. Fixed ProtectedRoute requiredRoles prop issue by removing invalid prop usage 6. Fixed auth store User type compatibility by allowing null for tenant_id 7. Fixed missing useToasts export from ui.store by removing from exports 8. Fixed permissions utility boolean type issues by wrapping expressions in Boolean() The frontend build now completes successfully.
This commit is contained in:
@@ -116,7 +116,7 @@ export const useForecastingHealth = (
|
||||
export const useInfiniteTenantForecasts = (
|
||||
tenantId: string,
|
||||
baseParams?: Omit<ListForecastsParams, 'skip' | 'limit'>,
|
||||
options?: Omit<UseInfiniteQueryOptions<{ forecasts: ForecastResponse[]; total: number }, ApiError>, 'queryKey' | 'queryFn' | 'getNextPageParam' | 'initialPageParam'>
|
||||
options?: Omit<UseInfiniteQueryOptions<{ forecasts: ForecastResponse[]; total: number }, ApiError>, 'queryKey' | 'queryFn' | 'getNextPageParam' | 'initialPageParam' | 'select'>
|
||||
) => {
|
||||
const limit = 20;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user