File tree 3 files changed +20
-1
lines changed
packages/language-core/lib/codegen/template
test-workspace/tsc/passedFixtures/#5111
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ function* generateInheritedAttrs(
124
124
}
125
125
yield `]${ endOfLine } ` ;
126
126
}
127
- return `Partial< typeof __VLS_inheritedAttrs> & Record<string, unknown >` ;
127
+ return `typeof __VLS_ctx.$attrs & Partial<typeof __VLS_inheritedAttrs >` ;
128
128
}
129
129
130
130
function * generateRefs (
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import { exactType } from ' ../shared' ;
3
+
4
+ declare module ' vue' {
5
+ interface ComponentCustomProperties {
6
+ $attrs: {
7
+ global: string ;
8
+ }
9
+ }
10
+ }
11
+ </script >
12
+
13
+ <template >
14
+ {{ exactType($attrs.global, {} as string) }}
15
+ </template >
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ../../../tsconfig.base.json" ,
3
+ "include" : [ " **/*" ]
4
+ }
You can’t perform that action at this time.
0 commit comments