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
Is this currently supported? if not, what would be the most ideal workaround?
<template> <component :is="theComponent" @change="handleChange" /> </template> <script lang="ts"> import { defineComponent, resolveComponent } from 'vue'; export default defineComponent({ setup() { const theComponent = resolveComponent('custom-component'); function handleChange(args1: boolean, args2: string) {} return { theComponent, handleChange, }; }, }); </script>
the example above will have warning type '(args1: boolean, args2: string) => void' is not assignable to type '(payload: Event) => void'
And thanks for the awesome tool!
The text was updated successfully, but these errors were encountered:
It's supported by some ways in past but not work now, will fix it. Thanks!
Sorry, something went wrong.
84d6740
Disable type-checking in next version for now, because we don't have a good way to handle this case currently:
<component :is="condition ? Foo : Bar" />
No branches or pull requests
Is this currently supported? if not, what would be the most ideal workaround?
the example above will have warning
type '(args1: boolean, args2: string) => void' is not assignable to type '(payload: Event) => void'
And thanks for the awesome tool!
The text was updated successfully, but these errors were encountered: