From: Jérôme Benoit Date: Wed, 6 Mar 2024 14:56:17 +0000 (+0100) Subject: refactor(ui): refine types augmentation X-Git-Tag: v1.3.0~42 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=faf9c82d28d21aa0e0bf71c51c1f470c059fed7c;p=e-mobility-charging-stations-simulator.git refactor(ui): refine types augmentation Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/global-properties.d.ts b/ui/web/src/global-properties.d.ts deleted file mode 100644 index f20cc81a..00000000 --- a/ui/web/src/global-properties.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export {} - -declare module 'vue' { - interface ComponentCustomProperties { - $configuration: Ref - $templates: Ref - $chargingStations: Ref - $uiClient: UIClient - } -} diff --git a/ui/web/src/shims-vue.d.ts b/ui/web/src/shims-vue.d.ts index c9d5581c..1b934bff 100644 --- a/ui/web/src/shims-vue.d.ts +++ b/ui/web/src/shims-vue.d.ts @@ -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 + $templates: Ref + $chargingStations: Ref + $uiClient: import('@/composables').UIClient + } }