Skip to content

Commit 99d48bd

Browse files
committed
fix: sfc test
1 parent f908ae2 commit 99d48bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compiler-sfc/__tests__/compileScript.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ const emit = defineEmits(['a', 'b'])
15891589
const { content } = compile(`
15901590
<script setup lang="ts">
15911591
const slots = defineSlots<{
1592-
default: [msg: string]
1592+
default: { msg: string }
15931593
}>()
15941594
</script>
15951595
`)
@@ -1601,7 +1601,7 @@ const emit = defineEmits(['a', 'b'])
16011601
const { content } = compile(`
16021602
<script setup lang="ts">
16031603
defineSlots<{
1604-
default: [msg: string]
1604+
default: { msg: string }
16051605
}>()
16061606
</script>
16071607
`)

0 commit comments

Comments
 (0)