Skip to content

Commit

Permalink
fix $slots type inference for vue-tsc 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jan 13, 2025
1 parent 37ab02d commit ca6056f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
6 changes: 2 additions & 4 deletions lib/components/SFragment.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<script lang="ts">
export default { inheritAttrs: false }
</script>

<script setup lang="ts">
defineProps<{ is?: any }>()
defineSlots()
defineOptions({ inheritAttrs: false })
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@
"vitest": ">=3.0.0-beta.0",
"vue": "^3.5.13",
"vue-router": "^4.5.0",
"vue-tsc": "~2.1"
"vue-tsc": "^2.2.0"
}
}
27 changes: 13 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca6056f

Please sign in to comment.