Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"reflect-metadata": "0.1.13",
"rollup": "3.21.6",
"tslib": "2.5.0",
"typescript": "4.9.5",
"typescript": "5.0.4",
"unplugin-vue-components": "0.24.1",
"vite": "4.3.5",
"vitepress": "0.22.4",
Expand Down
80 changes: 40 additions & 40 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/createInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function getInstanceOptions(

// implementation
export function createInstance(
inputComponent: DefineComponent<{}, {}, any>,
inputComponent: DefineComponent<{}, {}, any, any, any, any>,
options?: MountingOptions<any> & Record<string, any>
) {
// normalize the incoming component
Expand Down Expand Up @@ -209,7 +209,7 @@ export function createInstance(

// global mocks mixin
if (global?.mocks) {
const mixin = defineComponent({
const mixin: ComponentOptions = {
beforeCreate() {
// we need to differentiate components that are or not not `script setup`
// otherwise we run into a proxy set error
Expand Down Expand Up @@ -247,7 +247,7 @@ export function createInstance(
}
}
}
})
}

app.mixin(mixin)
}
Expand Down