How to use with vue-class-component?
See original GitHub issueI’m trying to do something like that:
import foo from 'store/modules/foo';
@Component({
methods: foo.mapMutations(['bar', 'baz'])
})
But got an error: Argument types do not match parameters
on mapMutations
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Vue Class Component: Overview
Vue Class Component is a library that lets you make your Vue components in class-style syntax. For example, below is a simple counter...
Read more >You should be using Vue Class Component
To create a project using Vue Class Component from scratch, you just need to follow Vue CLI steps, make sure to manually select...
Read more >How To Write Class-Based Components with Vue.js and ...
Step 1 — Setting Up the Project · Step 2 — Writing a Single-File Component with TypeScript · Step 3 — Using Component...
Read more >vue-class-component examples - CodeSandbox
Vue Class Component Examples. Learn how to use vue-class-component by viewing and forking example apps that make use of vue-class-component on CodeSandbox.
Read more >How to use TypeScript to Create Vue Apps with Vue Class ...
Introducing Vue Class Based Components ... We can start using class-based components by creating a project with the Vue CLI. ... In the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this
type of component from component options of decorator. So it is actually normal to produce error likesetTest does not exist
.this
type, you should useVue.extend
for mappers and inherit it.Yes, you were right - there is error, types working. It seems that WebStorm can’t recognize that… Sorry for bother you, thanks for help!
UPDATE Jetbrains support recommended me to install 2019.1 EAP (which adding better Typescript support in
.vue
files) and all errors are gone!