-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Please remove dependency on vue-class-component for Typescript users... #464
Comments
Hi @rfox12 👋 Interesting claim I can tell you. 🤔 This is a bit strange because compiled library should not depend on This is not the only issue I've got with the decorator. I had another problem with mixing default and named export which I thought was solved but it's not. I guess it's time to move the decorator to a separate library. I think it will solve a bunch of problems. What do you think? I'm not sure just yet whether it's possible or not but I hope so ;) BTW Are you using Vue 3 or just Composition API? Any ideas on how this library can benefit from composition API? |
I'm using the Composition API as a plug-in for now (w/Vue 2.6). Vuex 4 just came out, but as far as I can tell you shouldn't really need to change anything with |
Maybe you could move these lines out of import { VueDecorator } from 'vue-class-component';
export const Socket: (eventName?: string) => VueDecorator; |
I'm not sure whether typescript will start using that file @rfox12 if I make a branch with a potential fix would you like to check it? |
This is an issue for me as well. I installed the dependency as a workaround |
same error |
@rfox12 fixed in alpha of v5, but requires vue 3 for now. Will try to adopt it to work with v2 + composition api plugin |
I love this library--it's been useful. Now that all my projects are Typescript I've noticed that this library is complaining that I need
vue-class-component
... but I don't need it for my setup (I use the new Vue Composition API).It seems that
index.d.ts
usesVueDecorator
in exactly one line. Is there any easy way to separate that out?The text was updated successfully, but these errors were encountered: