Vuex: The `subscribeAction` types is not in types/index.d.ts in the latest v3.0.1

Created on 26 Jul 2018  路  3Comments  路  Source: vuejs/vuex

Version

3.0.1

Reproduction link

https://github.com/vuejs/vuex/blob/v3.0.1/types/index.d.ts#L19

Steps to reproduce

use store.subscribeAction() method

What is expected?

no error

What is actually happening?

TypeScript throws Property 'subscribeAction' does not exist on type 'Store<any>'


I checked the source code downloaded from NPM registry, there is no subscribeAction types declared in types/index.d.ts in fact.
https://github.com/vuejs/vuex/blob/v3.0.1/types/index.d.ts#L19

Most helpful comment

Can we make a release soon that includes this? It's kind of hard to use VueX from TypeScript in its current state.

All 3 comments

Can we make a release soon that includes this? It's kind of hard to use VueX from TypeScript in its current state.

It was fixed here but there just hasn't been a release since:
https://github.com/vuejs/vuex/issues/1066

There was a release, so this can be closed now afaics.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

james-wasson picture james-wasson  路  3Comments

ktsn picture ktsn  路  4Comments

gdelazzari picture gdelazzari  路  3Comments

gongzza picture gongzza  路  3Comments

jbruni picture jbruni  路  3Comments