Skip to content

Commit fce1aba

Browse files
authored
test: add test for #1855 (#3588)
1 parent 6df0db7 commit fce1aba

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script setup lang="ts">
2+
import { exactType } from 'vue-tsc/shared';
3+
import Comp from './Comp.vue';
4+
</script>
5+
6+
<template>
7+
<Comp @event-str="s => exactType(s, '' as string)" @event-any="a => exactType(a, {} as any)" />
8+
</template>

0 commit comments

Comments
 (0)