Vuex: The TypeScript definition files incorrectly specifies the map* functions as named exports.

Created on 18 May 2018  路  1Comment  路  Source: vuejs/vuex

Version

3.0.1

Reproduction link

https://github.com/ciddan/vuex-ts-issue

Steps to reproduce

Reproduction of an issue with the TypeScript type definitions in Vuex.

  1. Clone the provided repository.
  2. run npm install
  3. run npm start
  4. Open browser and go to http://localhost:8080.
  5. Open dev tools and look at the console output.

What is expected?

That the first log output: mapActions from: import { mapActions } undefined isn't undefined.

What is actually happening?

mapActions is undefined.


Please read the README in the linked repository for full information on the issue.

We ran into this issue while working on TypeScript decorators that required the use of the various map functions.

bug types

Most helpful comment

fixed via #1408

>All comments

fixed via #1408

Was this page helpful?
0 / 5 - 0 ratings