Skip to content

bug store typescript #1895

Closed
Closed
@jadsongmatos

Description

@jadsongmatos

Version

4.0.0-rc.2

Reproduction link

https://codesandbox.io/s/romantic-margulis-hq4nb?file=/src/main.js

Steps to reproduce

import { MutationTree } from 'vuex'
import { State } from './type'

const mutations: MutationTree<State> = {
  search(state, payload: any) {
    state.search = payload;
  },
}

What is expected?

state.search is equal to payload

What is actually happening?

state.search remains the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.xneed reproReproduction code is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions