Skip to content

refactor(types): use Component definition from Vue core #1213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2019
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
8 changes: 1 addition & 7 deletions packages/server-test-utils/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions } from 'vue'

// TODO: use core repo's Component type after https://github.com/vuejs/vue/pull/7369 is released
export type Component =
| typeof Vue
| FunctionalComponentOptions<{}>
| ComponentOptions<never, {}, {}, {}, {}>
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions, Component } from 'vue'

/**
* Utility type to declare an extended Vue constructor
Expand Down
8 changes: 1 addition & 7 deletions packages/test-utils/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions } from 'vue'

// TODO: use core repo's Component type after https://github.com/vuejs/vue/pull/7369 is released
export type Component =
| typeof Vue
| FunctionalComponentOptions<{}>
| ComponentOptions<never, {}, {}, {}, {}>
import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions, Component } from 'vue'

/**
* Utility type to declare an extended Vue constructor
Expand Down