working with webpack 5

This commit is contained in:
Julien Fastré 2022-06-27 15:28:35 +02:00
parent a9bc98738e
commit 922c5c5f5c
2 changed files with 7 additions and 3 deletions

View File

@ -55,9 +55,6 @@ const store = useStore(key);
const showWeekends = ref(true); const showWeekends = ref(true);
const slotDuration = ref('00:15:00'); 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<CalendarOptions>({ const baseOptions = ref<CalendarOptions>({
locale: frLocale, locale: frLocale,
plugins: [interactionPlugin, timeGridPlugin], plugins: [interactionPlugin, timeGridPlugin],

7
src/shims-vue.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
declare module "*.vue" {
import { defineComponent } from 'vue'
const Component: ReturnType<typeof defineComponent>
export default Component
}