Skip to content

Commit 6fb06b9

Browse files
authoredApr 24, 2025··
Merge pull request #1290 from basics/feature/1289-property-x-does-not-exist-on-type-createcomponentpublicinstancewithmixins
Feature/1289 property x does not exist on type createcomponentpublicinstancewithmixins
2 parents 63908bb + 300cc79 commit 6fb06b9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
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[];

‎playground/nuxt.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineNuxtConfig } from 'nuxt/config';
22
import { readPackage } from 'read-pkg';
33
import svgLoader from 'vite-svg-loader';
4-
import checker from 'vite-plugin-checker';
54

65
import type { NuxtConfig } from '@nuxt/schema';
76
import * as postcssFunctions from './postcss/functions';
@@ -68,9 +67,6 @@ export default defineNuxtConfig({
6867
plugins: [
6968
svgLoader({
7069
defaultImport: 'component' // or 'raw'
71-
}),
72-
checker({
73-
vueTsc: true
7470
})
7571
]
7672
},
@@ -417,6 +413,7 @@ export default defineNuxtConfig({
417413
modules: ['@nuxt/eslint', '../src/module'],
418414

419415
typescript: {
416+
typeCheck: true,
420417
tsConfig: {
421418
include: ['../../test/**/*.ts']
422419
}

‎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)
Please sign in to comment.