Skip to content

@flow typeerror #3937

@stephen-dahl

Description

@stephen-dahl

Intended outcome:

use the @flow annotation

    @flow
    *fetch() {
      return true
    }

Actual outcome:

type error on @flow
image

How to reproduce the issue:

add the @flow decorator to a generator inside a class

https://codesandbox.io/p/sandbox/gifted-dawn-w2vdz9?workspaceId=6ecfa4fe-9261-4054-86f0-83188ee28c65

code sandbox does not show the error, not sure if they show ts errors. I see the error locally in vscode and webstorm.

Versions
"mobx": "^6.13.3",
"mobx-react-lite": "^4.0.7",
"typescript": "^5.6.3",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions