-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
typesRelated to typings onlyRelated to typings only
Description
Version
4.0.0-beta.4
Steps to reproduce
In the Vue4 type definition the useStore function is defined as
Line 48 in 83bc26f
export function useStore<S = any>(): Store<S>; |
but in the source you can provide a key, to enable more then one store in the application.
Line 5 in 83bc26f
export function useStore (key = null) { |
What is expected?
The type definition should match the function
What is actually happening?
It does not match ;) so only one store can be used with typescript
nrgnrg
Metadata
Metadata
Assignees
Labels
typesRelated to typings onlyRelated to typings only