File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 1
- import type { Defaults } from 'v-calendar/src/utils/defaults'
2
1
import {
3
2
defineNuxtModule ,
4
3
addPlugin ,
5
4
createResolver ,
6
5
addComponent
7
6
} from '@nuxt/kit'
7
+ import type { DarkModeConfig } from 'vue-screen-utils'
8
8
import { name , version } from '../package.json'
9
9
10
10
export type VCalendarComponents = {
11
11
DatePicker : boolean
12
12
Calendar : boolean
13
13
}
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
+ }
14
38
export interface ModuleOptions {
15
39
/**
16
40
* @description prefix instead of v-
You can’t perform that action at this time.
0 commit comments