Skip to content

Commit 0ff36a7

Browse files
committed
fix: plugin util
1 parent 954af5c commit 0ff36a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/devtools-utils/src/vue/plugin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ import type { DefineComponent } from 'vue'
44
export function createVuePlugin<TComponentProps extends Record<string, any>>(
55
name: string,
66
component: DefineComponent<TComponentProps, {}, unknown>,
7-
props: TComponentProps,
87
) {
9-
function Plugin() {
8+
function Plugin(props: TComponentProps) {
109
return {
1110
name,
1211
component,
1312
props,
1413
}
1514
}
16-
function NoOpPlugin(props: Record<string, any>) {
15+
function NoOpPlugin(props: TComponentProps) {
1716
return {
1817
name,
1918
component: Fragment,

0 commit comments

Comments
 (0)