We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5
https://github.com/shenron/vite-demo/tree/vue-3.5
npm run lint
Previously the emit property in the defineComponent enable in TSX a property with the same name prefixed by on
emit
defineComponent
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
Same behavior as the previous version of Vue
Few false positive errors are trigger
No response
The text was updated successfully, but these errors were encountered:
fca20a3
No branches or pull requests
Vue version
3.5
Link to minimal reproduction
https://github.com/shenron/vite-demo/tree/vue-3.5
Steps to reproduce
TSX and events
Previously the
emit
property in thedefineComponent
enable in TSX a property with the same name prefixed byon
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
The text was updated successfully, but these errors were encountered: