Skip to content

Commit 4a5aab4

Browse files
wip, add wrap function for Vue3
1 parent 60bf8e1 commit 4a5aab4

File tree

6 files changed

+378
-186
lines changed

6 files changed

+378
-186
lines changed

dist/index.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import type VueV2 from 'vue';
2-
import type { Component, AsyncComponent } from 'vue';
2+
import type { Component as VueV2Component, AsyncComponent as VueV2AsyncComponent } from 'vue';
33
import type * as VueV3 from 'vue-v3';
4-
export default function wrap(Vue: typeof VueV2 | typeof VueV3, Component: Component | AsyncComponent): CustomElementConstructor;
4+
import type { Component as VueV3Component } from 'vue-v3';
5+
declare function wrap(Vue: typeof VueV2, Component: VueV2Component | VueV2AsyncComponent): CustomElementConstructor;
6+
declare function wrap(Vue: typeof VueV3, Component: VueV3Component): CustomElementConstructor;
7+
export default wrap;

0 commit comments

Comments
 (0)