-
Notifications
You must be signed in to change notification settings - Fork 190
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
Typescript types are incompletes #88
Comments
I have a same issue |
Is there a solution? |
I have same issue |
I’m not familiar with ts type definitions, pull requests are welcomed. |
So I made a decorator binding lib. |
I'm also noticing that things like props and methods aren't inferred for the component. Would adding the full set of generics fix this? This is what I mean: declare module "vue/types/options" {
interface ComponentOptions<
V extends Vue,
Data = DefaultData<V>,
Methods = DefaultMethods<V>,
Computed = DefaultComputed,
PropsDef = PropsDefinition<DefaultProps>,
Props = DefaultProps
> {
subscriptions?: Observables | ((this: V) => Observables);
domStreams?: string[]
observableMethods?: string[] | Record<string, string>
}
} |
I would like to use
|
Hello,
We are using vue-rx with typescript and we encountered some issues:
subscriptions
we can access to the properties defined indata
but the current vue-rx types say that we can't.Note: It works if you use:
subscriptions?: Observables | (() => Observables)
instead ofsubscriptions?: Observables | ((this: V) => Observables)
. But i didn't make a pull request because i am not sure that we can access to the props whensubscriptions
is called.this
is not extended with the data set by the subscriptions. So we can not access to the current values in the methods etc.The text was updated successfully, but these errors were encountered: