Files
webapp/app/shims.d.ts
Ruslan Bakiev 20e0e73c58
All checks were successful
Build Docker Image / build (push) Successful in 3m59s
refactor: remove any types and fix TypeScript errors
- 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
2026-01-27 10:35:14 +07:00

39 lines
1017 B
TypeScript

// 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
}