-
-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-core): intersect props of generic component with attrs (#…
- Loading branch information
Showing
5 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test-workspace/tsc/passedFixtures/fallthroughAttributes_strictTemplate/generic/basic.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts" generic="T"> | ||
import child from './child.vue'; | ||
defineProps<{ | ||
foo?: T; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<child /> | ||
</template> |
5 changes: 5 additions & 0 deletions
5
test-workspace/tsc/passedFixtures/fallthroughAttributes_strictTemplate/generic/child.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
bar?: string; | ||
}>(); | ||
</script> |
7 changes: 7 additions & 0 deletions
7
test-workspace/tsc/passedFixtures/fallthroughAttributes_strictTemplate/generic/main.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup lang="ts"> | ||
import basic from './basic.vue'; | ||
</script> | ||
|
||
<template> | ||
<basic bar="..."/> | ||
</template> |