We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df0db7 commit fce1abaCopy full SHA for fce1aba
packages/vue-test-workspace/vue-tsc/non-strict-template/#1855/Comp.vue
@@ -0,0 +1,6 @@
1
+<script setup lang="ts">
2
+const emit = defineEmits<{
3
+ (e: 'event-any', arg: any): void;
4
+ (e: 'event-str', arg: string): void;
5
+}>();
6
+</script>
packages/vue-test-workspace/vue-tsc/non-strict-template/#1855/main.vue
@@ -0,0 +1,8 @@
+import { exactType } from 'vue-tsc/shared';
+import Comp from './Comp.vue';
+
+<template>
7
+ <Comp @event-str="s => exactType(s, '' as string)" @event-any="a => exactType(a, {} as any)" />
8
+</template>
0 commit comments