File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/no-unused-vars */
21export interface ColorModeInstance {
32 preference : string
43 value : string
@@ -8,31 +7,11 @@ export interface ColorModeInstance {
87
98export type ColorModeStorage = 'localStorage' | 'sessionStorage' | 'cookie'
109
11- // @ts -expect-error vue 2 types
12- declare module 'vue/types/vue' {
13- interface Vue {
14- $colorMode : ColorModeInstance
15- }
16- }
17-
18- // @ts -expect-error vue 2 types
19- declare module 'vue/types/options' {
20- interface ComponentOptions < V > {
21- /**
22- * Forces a color mode for current page
23- * @see https://color-mode.nuxtjs.org/#force-a-color-mode
24- */
25- colorMode ?: string
26- }
27- }
28-
29- // Nuxt Bridge & Nuxt 3
3010declare module '#app' {
3111 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
3212 interface NuxtApp extends PluginInjection { }
3313}
3414
35- // Nuxt 3
3615declare module 'vue-router' {
3716 interface RouteMeta {
3817 colorMode ?: string
You can’t perform that action at this time.
0 commit comments