You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you enable strict in tsconfig - compiler will throw "overload" errors, when you disable it - mapState works, but then methods will throw "Property 'xxx' does not exist on type 'Vue3Instance" error. As we tested "under the hood" strictFunctionTypes causes these errors.
Versions: node: v14.19.1 npm: 6.14.16
strict = false (method)
strict = true (mapState)
What is expected?
mapState would work without errors when strict is enabled.
What is actually happening?
It throws ts errors.
The text was updated successfully, but these errors were encountered:
Ignelio6666
changed the title
Vue 2.7.14 mapState types doesn't work with strict enabled
Vue 2.7.14 mapState throws error with strict enabled
Dec 8, 2022
Version
2.7.14
Reproduction link
issue_repo
Steps to reproduce
If you enable
strict
in tsconfig - compiler will throw "overload" errors, when you disable it - mapState works, but then methods will throw "Property 'xxx' does not exist on type 'Vue3Instance" error. As we tested "under the hood"strictFunctionTypes
causes these errors.Versions:
node: v14.19.1
npm: 6.14.16
strict = false
(method)strict = true
(mapState)What is expected?
mapState would work without errors when strict is enabled.
What is actually happening?
It throws ts errors.
The text was updated successfully, but these errors were encountered: