Browse Source

chore: support template type check (volar) (#985)

odex21 3 years ago
parent
commit
952ac342f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/utils/create/component.ts

+ 1 - 1
src/packages/utils/create/component.ts

@@ -30,7 +30,7 @@ export function createComponent(name: string) {
         vue.component(_component.name as string, _component as any);
       };
       return defineComponent(_component as any);
-    },
+    } as typeof defineComponent,
     createDemo: function (_component: any) {
       _component.baseName = name;