Skip to content

Commit

Permalink
Merge pull request #13 from samk-dev/fix/export-vcalendar-types
Browse files Browse the repository at this point in the history
fix: `vue-screen-utils` unexpected token
  • Loading branch information
samk-dev authored Apr 5, 2024
2 parents 2c3297d + 38bd159 commit 8190c14
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ import {
createResolver,
addComponent
} from '@nuxt/kit'
import type { DarkModeConfig } from 'vue-screen-utils'
import { name, version } from '../package.json'

export type VCalendarComponents = {
DatePicker: boolean
Calendar: boolean
}
// workaround until to figure out why the type is not resolving from
// import type {Defaults} from 'vcalendar/dist/types/src/utils/defaults'
// Error 01: import type {Defaults} from 'vcalendar/dist/types/src/utils/defaults'
// Error 02: ERROR Unexpected token (4:8) in /Users/terminal-sss/Desktop/Developer/libraries/nuxt-vcalendar/node_modules/vue-screen-utils/dist/index.d.ts

interface DarkModeClassConfig {
selector: string
darkClass: string
}
type DarkModeConfig = boolean | 'system' | Partial<DarkModeClassConfig>
interface DatePickerPopoverDefaults {
visibility?: string
placement?: string
Expand Down

0 comments on commit 8190c14

Please sign in to comment.