File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
packages/language-core/lib/codegen/script
test-workspace/tsc/passedFixtures/fallthroughAttributes/#5680 Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ function* generatePropsOption(
125125 if ( options . templateCodegen ?. inheritedAttrVars . size ) {
126126 let attrsType = `__VLS_InheritedAttrs` ;
127127 if ( hasEmitsOption ) {
128- attrsType = `Omit<${ attrsType } , \`on\${string}\` >` ;
128+ attrsType = `Omit<${ attrsType } , keyof __VLS_EmitProps >` ;
129129 }
130130 getOptionCodes . push ( ( ) => {
131131 const propsType = `__VLS_PickNotAny<${ ctx . localTypes . OmitIndexSignature } <${ attrsType } >, {}>` ;
Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ defineEmits <{ test: [] }>();
3+ </script >
4+
5+ <template >
6+ <input />
7+ </template >
Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import child from ' ./child.vue' ;
3+ import { exactType } from ' ../../shared' ;
4+ </script >
5+
6+ <template >
7+ <child @input =" exactType($event, {} as Event)" />
8+ </template >
You can’t perform that action at this time.
0 commit comments