-
-
Notifications
You must be signed in to change notification settings - Fork 441
v-slot: This expression is not callable. Type XXX has no call signatures. #3117
New issue
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
Comments
This is expected, see #3116. You need to change the code to defineSlots<{
default: {
- foo: string;
+ foo?: (_: string) => any;
};
}>(); |
Hey Johnson, I just noticed short slots syntax is not supported ATM. I wanted to point out that I was using object syntax and generating type based on that using For complex component like select which uses list and list-item under the hood, I modify the obj according to user DX and implementation and later generate type using So the point I'm trying to make is, using object syntax was fairly easy and it was easy to modify and extend the slots objects. (e.g. However, with full syntax, it's hard to modify the slots as value because now we have to deal with function params instead of object. So, here's my use case and request for bringing back object syntax. Thanks for your efforts 🙏🏻 |
Closed due to unable to reproduce in latest version. |
Description
Reproduction
Stackblitz
The text was updated successfully, but these errors were encountered: