Skip to content

Commit 16be8f7

Browse files
committed
fix: re-exported vcalendar types
1 parent 819f9ae commit 16be8f7

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

src/module.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
1-
import type { Defaults } from 'v-calendar/src/utils/defaults'
21
import {
32
defineNuxtModule,
43
addPlugin,
54
createResolver,
65
addComponent
76
} from '@nuxt/kit'
7+
import type { DarkModeConfig } from 'vue-screen-utils'
88
import { name, version } from '../package.json'
99

1010
export type VCalendarComponents = {
1111
DatePicker: boolean
1212
Calendar: boolean
1313
}
14+
// workaround until to figure out why the type is not resolving from
15+
// import type {Defaults} from 'vcalendar/dist/types/src/utils/defaults'
16+
interface DatePickerPopoverDefaults {
17+
visibility?: string
18+
placement?: string
19+
isInteractive?: boolean
20+
}
21+
interface DatePickerDefaults {
22+
updateOnInput?: boolean
23+
inputDebounce?: number
24+
popover?: DatePickerPopoverDefaults
25+
}
26+
export interface Defaults {
27+
componentPrefix?: string
28+
color?: string
29+
isDark?: DarkModeConfig
30+
navVisibility?: string
31+
titlePosition?: string
32+
transition?: string
33+
touch?: object
34+
masks?: object
35+
locales?: any
36+
datePicker?: DatePickerDefaults
37+
}
1438
export interface ModuleOptions {
1539
/**
1640
* @description prefix instead of v-

0 commit comments

Comments
 (0)