Skip to content

Commit 1701b30

Browse files
Dmitry Sharshakoveddyerburgh
Dmitry Sharshakov
authored andcommitted
refactor(types): use Component definition from Vue core (#1213)
1 parent ecfe228 commit 1701b30

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Diff for: packages/server-test-utils/types/index.d.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions } from 'vue'
2-
3-
// TODO: use core repo's Component type after https://github.com/vuejs/vue/pull/7369 is released
4-
export type Component =
5-
| typeof Vue
6-
| FunctionalComponentOptions<{}>
7-
| ComponentOptions<never, {}, {}, {}, {}>
1+
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions, Component } from 'vue'
82

93
/**
104
* Utility type to declare an extended Vue constructor

Diff for: packages/test-utils/types/index.d.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions } from 'vue'
2-
3-
// TODO: use core repo's Component type after https://github.com/vuejs/vue/pull/7369 is released
4-
export type Component =
5-
| typeof Vue
6-
| FunctionalComponentOptions<{}>
7-
| ComponentOptions<never, {}, {}, {}, {}>
1+
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions, Component } from 'vue'
82

93
/**
104
* Utility type to declare an extended Vue constructor

0 commit comments

Comments
 (0)