Skip to content

Actions not recognized when using ActionTree #1461

Closed
@farzadmf

Description

@farzadmf

Version

3.0.1

Reproduction link

https://github.com/farzadmf/vuex-action-tree-issue

Steps to reproduce

There's no need to run anything, just open the repo in VSCode, and you will see the error. I've added comments to make it clear

What is expected?

When I create an ActionTree<...>, I should be able to call my individual Actions on it

What is actually happening?

When I type my actions to be of type ActionTree<...>, then when I call my action(s), I see the error of "no compatible call signatures"


I've created constants to be used as names for my actions (so that I don't use strings). At first, I though that is what's causing the problem; that's why I created the 'hello()' function to test, and it seems to me the constants are not an issue here.

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