File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 313
313
" " ,
314
314
" // For default values for your props, use :" ,
315
315
" // withDefaults(defineProps<Props>(), { msg: 'myDefaultValue' })}" ,
316
- " defineProps<Props>()"
316
+ " const props = defineProps<Props>()"
317
317
],
318
318
"description" : " Vue Composition api - defineProps with Interface"
319
319
},
320
320
"Vue Composition API - defineEmits with Interface" : {
321
321
"prefix" : " vdefineemits" ,
322
322
"body" : [
323
323
" interface Emits {" ,
324
- " \t $ (e: 'change', id: number): void" ,
325
- " \t $ (e: 'update', value: string): void" ,
324
+ " \t (e: 'change', id: number): void" ,
325
+ " \t (e: 'update', value: string): void" ,
326
326
" }" ,
327
327
" " ,
328
- " defineEmits<Emits>()"
328
+ " const emit = defineEmits<Emits>()"
329
329
],
330
330
"description" : " Vue Composition api - defineEmits with Interface"
331
331
},
You can’t perform that action at this time.
0 commit comments