Skip to content

01-Maintaining-State typescript error #1

@pufanalexandru

Description

@pufanalexandru

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions