Git Product home page Git Product logo

Comments (7)

minuukang avatar minuukang commented on August 26, 2024 3

So I made a decorator binding lib.

https://github.com/MinuKang/vue-rx-decorators

from vue-rx.

alexsasharegan avatar alexsasharegan commented on August 26, 2024 3

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>
    }
}

from vue-rx.

Terry-bear avatar Terry-bear commented on August 26, 2024

I have a same issue

from vue-rx.

olivewind avatar olivewind commented on August 26, 2024

Is there a solution?

from vue-rx.

ananiy avatar ananiy commented on August 26, 2024

I have same issue

from vue-rx.

regou avatar regou commented on August 26, 2024

Iā€™m not familiar with ts type definitions, pull requests are welcomed.
Or @keego give a check?

from vue-rx.

raybog avatar raybog commented on August 26, 2024

I would like to use $fromDOMEvent('input', 'keyup') inside my class component to have access to properties and methods. Is this possible? Something like this:

export default class MyComponent extends Vue {
.... 
private name;

private handleNameInput(observable: Observable<any>):Observable<any> {
   return observable.pipe(
    ......
   );
 }

 public created() {
   this.handleNameInput($fromDOMEvent('input', 'keyup')).subscribe(
     result => this.name = result
   )
 } 
....
}

from vue-rx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.