refactor(ui): refine types augmentation
[e-mobility-charging-stations-simulator.git] / ui / web / src / shims-vue.d.ts
index c9d5581c0257bb7069ffe47954c9a36a384fb512..1b934bffe0795fdb8767d94225cfa14f9a9bcd5e 100644 (file)
@@ -1,6 +1,14 @@
-declare module '*.vue' {
-  import type { DefineComponent } from 'vue'
-  // eslint-disable-next-line @typescript-eslint/ban-types
-  const component: DefineComponent<{}, {}, unknown>
-  export default component
+export {}
+
+declare module 'vue' {
+  export interface GlobalComponents {
+    RouterLink: (typeof import('vue-router'))['RouterLink']
+    RouterView: (typeof import('vue-router'))['RouterView']
+  }
+  interface ComponentCustomProperties {
+    $configuration: Ref<import('@/types').ConfigurationData>
+    $templates: Ref<string[]>
+    $chargingStations: Ref<import('@/types').ChargingStationData[]>
+    $uiClient: import('@/composables').UIClient
+  }
 }