Skip to content

Commit fff27cc

Browse files
author
Corentin Andre
committed
New Snippet
- Mutation type, useful when following app structure of vuex, when you separate your mutation types inside another file.
1 parent 5ca30a3 commit fff27cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

snippets/snippets.cson

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,6 @@
264264
'body': '${1:variable}: () => state.${1:variable}'
265265
'description': 'Vuex snippet for getters.'
266266
'descriptionMoreURL': 'https://vuex.vuejs.org/en/getters.html'
267+
'Mutation type':
268+
'prefix': 'vtype'
269+
'body': 'export const ${1:MUTATION_TYPE} = \'${1:MUTATION_TYPE}\''

0 commit comments

Comments
 (0)