Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Vue typing issue solved #246

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Vue typing issue solved #246

merged 1 commit into from
Aug 27, 2019

Conversation

asbermudez
Copy link
Contributor

@asbermudez asbermudez commented Aug 22, 2019

When this package is used in a project that has a modified Vue type (like using i18n or so), the decorators of this project give error because the output type is not matching (it does pick the vue package installed inside the package folder).

With this change the decorator inherits the type from the project instead of the local one and thus not giving any error.

This solution comes from what the official vue-class-component package is doing.
https://github.com/vuejs/vue-class-component/blob/master/package.json#L65

Because vue was in the dependencies, when installed into a project that has modified Vue type it does inherit from the package installed of Vue type instead of project-modified instance. This causes type errors and prevents proper usage.
This solution comes from what the official vue-class-component package is doing.
@kaorun343
Copy link
Owner

Hi.
Thanks for your PR.
I'll merge this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants