Skip to content
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

01-Maintaining-State typescript error #1

Open
pufanalexandru opened this issue Nov 24, 2016 · 0 comments
Open

01-Maintaining-State typescript error #1

pufanalexandru opened this issue Nov 24, 2016 · 0 comments

Comments

@pufanalexandru
Copy link

I'm trying to run 01 example, but I'm getting an error at line 32:
.startWith({x: 100, y: 150})

The error says that

Argument of type '{x: number; y: number; }' is not assignable to parameter of type 'number | Scheduler'. Object literal may only specify known properties, and 'x' does not exist in type 'number | Scheduler'.

After checking startWith documentation, it seems that you can only pass numbers to it. Is there any workaround for this to work?

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

No branches or pull requests

1 participant