-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
Description
Vue version
3.5
Link to minimal reproduction
https://github.com/shenron/vite-demo/tree/vue-3.5
Steps to reproduce
npm run lint
TSX and events
Previously the emit
property in the defineComponent
enable in TSX a property with the same name prefixed by on
export const emits = {
customClick /* <-- */: (args: string) => typeof args === 'string',
} as const;
export default defineComponent({
name: 'HelloWorld',
inheritAttrs: false,
props,
emits,
setup,
render,
});
<HelloWorld
onCustomClick={console.log} /* <- 'onCustomClick' does not exist on type 'IntrinsicAttributes & Partial<{ rea .... */
/>
use case: https://github.com/shenron/vite-demo/blob/vue-3.5/src/app/useRender.tsx#L40
What is expected?
Same behavior as the previous version of Vue
What is actually happening?
Few false positive errors are trigger
System Info
No response
Any additional comments?
No response
Tommytrg and kuoruan