File tree 1 file changed +4
-5
lines changed
test-workspace/tsc/passedFixtures/vue3/#3204
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- <script setup lang="ts" generic =" T " >
2
- import { Reactive } from ' vue' ;
1
+ <script setup lang="ts" generic =" T extends { foo: number }" >
3
2
import { exactType } from ' ../../shared' ;
4
3
5
4
const props = withDefaults (defineProps <{
@@ -12,12 +11,12 @@ const props = withDefaults(defineProps<{
12
11
13
12
<template >
14
13
<div v-for =" item of list" >
15
- {{ exactType(item, {} as Reactive< T > ) }}
14
+ {{ exactType(item.foo , {} as number ) }}
16
15
</div >
17
16
<div v-for =" item of props.list" >
18
- {{ exactType(item, {} as Reactive< T > ) }}
17
+ {{ exactType(item.foo , {} as number ) }}
19
18
</div >
20
19
<div v-for =" item of $props.list" >
21
- {{ exactType(item, {} as Reactive< T > ) }}
20
+ {{ exactType(item.foo , {} as number ) }}
22
21
</div >
23
22
</templat >
You can’t perform that action at this time.
0 commit comments