Skip to content

Commit 08dcf84

Browse files
committed
modified functions to match examples
1 parent 448c097 commit 08dcf84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

snippets/vue-script.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -313,19 +313,19 @@
313313
"",
314314
"// For default values for your props, use :",
315315
"// withDefaults(defineProps<Props>(), { msg: 'myDefaultValue' })}",
316-
"defineProps<Props>()"
316+
"const props = defineProps<Props>()"
317317
],
318318
"description": "Vue Composition api - defineProps with Interface"
319319
},
320320
"Vue Composition API - defineEmits with Interface": {
321321
"prefix": "vdefineemits",
322322
"body": [
323323
"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",
326326
"}",
327327
"",
328-
"defineEmits<Emits>()"
328+
"const emit = defineEmits<Emits>()"
329329
],
330330
"description": "Vue Composition api - defineEmits with Interface"
331331
},

0 commit comments

Comments
 (0)