From 922c5c5f5ca08075d607dd7ac2bdb3fc424867c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 27 Jun 2022 15:28:35 +0200 Subject: [PATCH] working with webpack 5 --- .../Resources/public/vuejs/MyCalendarRange/App2.vue | 3 --- src/shims-vue.d.ts | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/shims-vue.d.ts diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue index 01a5052ea..7bdfea233 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue +++ b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue @@ -55,9 +55,6 @@ const store = useStore(key); const showWeekends = ref(true); const slotDuration = ref('00:15:00'); -// will work as long as calendar-vue is not changed -const calendarRef = ref<{renderId: number}|null>(null); - const baseOptions = ref({ locale: frLocale, plugins: [interactionPlugin, timeGridPlugin], diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts new file mode 100644 index 000000000..11cc979b7 --- /dev/null +++ b/src/shims-vue.d.ts @@ -0,0 +1,7 @@ +declare module "*.vue" { + import { defineComponent } from 'vue' + + const Component: ReturnType + + export default Component +}