Open vaiil opened 7 months ago
Temporary solution:
// HelloWorld.vue
<script setup lang="ts" generic="T">
import { ref } from 'vue';
defineProps<{ msg: T }>();
defineSlots<{
- default(props: { msg: T }): any;
+ default?(props: { msg: T }): any;
}>();
const count = ref(0);
</script>
Vue version
3.4.21
Link to minimal reproduction
https://stackblitz.com/edit/vite-xncnuv?file=src%2FApp.vue
Steps to reproduce
Open stackblitz Run
npx vue-tsc --noEmit
in terminalWhat is expected?
No type errors
What is actually happening?
Got error:
System Info
Any additional comments?
No response