refactor: remove any types and fix TypeScript errors
All checks were successful
Build Docker Image / build (push) Successful in 3m59s
All checks were successful
Build Docker Image / build (push) Successful in 3m59s
- Export InfoProductItem, InfoHubItem, InfoSupplierItem, InfoOfferItem types - Update InfoEntity interface to have explicit fields (no index signature) - Export CatalogHubItem, CatalogNearestHubItem from useCatalogHubs - Fix MapItem interfaces to accept nullable GraphQL types - Fix v-for :key bindings to handle null uuid - Add null guards in select-location pages - Update HubCard to accept nullable transportTypes - Add shims.d.ts for missing module declarations
This commit is contained in:
38
app/shims.d.ts
vendored
Normal file
38
app/shims.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
// Type declarations for modules without TypeScript support
|
||||
|
||||
declare module '@lottiefiles/dotlottie-vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
|
||||
export const DotLottieVue: DefineComponent<{
|
||||
src?: string
|
||||
autoplay?: boolean
|
||||
loop?: boolean
|
||||
class?: string
|
||||
style?: Record<string, string | number>
|
||||
}>
|
||||
}
|
||||
|
||||
declare module 'vue-chartjs' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
|
||||
export const Line: DefineComponent
|
||||
export const Bar: DefineComponent
|
||||
export const Pie: DefineComponent
|
||||
export const Doughnut: DefineComponent
|
||||
}
|
||||
|
||||
declare module 'chart.js' {
|
||||
export const CategoryScale: unknown
|
||||
export const LinearScale: unknown
|
||||
export const PointElement: unknown
|
||||
export const LineElement: unknown
|
||||
export const Title: unknown
|
||||
export const Tooltip: unknown
|
||||
export const Legend: unknown
|
||||
export const Filler: unknown
|
||||
export const Chart: {
|
||||
register: (...args: unknown[]) => void
|
||||
}
|
||||
export type ChartData<T = unknown> = T
|
||||
export type ChartOptions<T = unknown> = T
|
||||
}
|
||||
Reference in New Issue
Block a user