fix(compile-sfc): generate setup prop type format error (#4506)
fix #4505
This commit is contained in:
@@ -799,8 +799,8 @@ const emit = defineEmits(['a', 'b'])
|
||||
<script setup lang="ts">
|
||||
const props = withDefaults(defineProps<{
|
||||
foo?: string
|
||||
bar?: number
|
||||
baz: boolean
|
||||
bar?: number;
|
||||
baz: boolean;
|
||||
qux?(): number
|
||||
}>(), {
|
||||
foo: 'hi',
|
||||
|
||||
Reference in New Issue
Block a user