Skip to content

Commit 61ebce0

Browse files
committed
fix: remove legacy type augmentations
1 parent a5a1f43 commit 61ebce0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/runtime/types.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
21
export interface ColorModeInstance {
32
preference: string
43
value: string
@@ -8,31 +7,11 @@ export interface ColorModeInstance {
87

98
export 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
3010
declare module '#app' {
3111
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
3212
interface NuxtApp extends PluginInjection { }
3313
}
3414

35-
// Nuxt 3
3615
declare module 'vue-router' {
3716
interface RouteMeta {
3817
colorMode?: string

0 commit comments

Comments
 (0)