Skip to content

Commit 300cc79

Browse files
committed
fix(types): update module declaration for vue
1 parent 83f76ba commit 300cc79

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/src/guide/definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ declare module 'nuxt/app' {
309309
### ComponentCustomProperties
310310

311311
```ts
312-
declare module '@vue/runtime-core' {
312+
declare module 'vue' {
313313
interface ComponentCustomProperties {
314314
$booster: {
315315
targetFormats: string[];

src/types/module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Nuxt, ViteConfig } from 'nuxt/schema';
22
import type { Manifest } from 'vue-bundle-renderer';
33
import type { FontOption } from './font';
44
import type { ImageModifiers } from '@nuxt/image';
5+
import type { Directive } from 'vue';
56

67
export type HTMLCrossOriginAttribute = 'anonymous' | 'use-credentials' | '';
78
export type CrossOrigin = boolean | HTMLCrossOriginAttribute | undefined;
@@ -154,7 +155,7 @@ declare module 'nuxt/app' {
154155
}
155156
}
156157

157-
declare module '@vue/runtime-core' {
158+
declare module 'vue' {
158159
interface ComponentCustomProperties {
159160
$booster: {
160161
targetFormats: string[];

0 commit comments

Comments
 (0)