Skip to content

useStore is missing a type declaration #1736

@ChrisShank

Description

@ChrisShank

Version

4.0.0-beta.1

Reproduction link

https://github.com/ChrisShank/vue-next-webpack-preview

Steps to reproduce

Remove the type declaration of 'useStore' I added in 'vuex-shim.d.ts', and there will be a compile-time TS error.

What is expected?

The type for useStore to exist.

What is actually happening?

On the line:

import { useStore } from 'vuex'

There is an error:

TS2614: Module 'vue-next-webpack-preview/node_modules/vuex/types"' has no exported member 'useStore'. Did you mean to use 'import useStore from "vue-next-webpack-preview/node_modules/vuex/types"' instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.xbugSomething isn't workingtypesRelated to typings only

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions