-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Question] In the future and Object slot typing be supported by this plugin #651
Comments
@louiss0, it is much easier to use Examples: |
You can use this Stackblits example repo to show me what you mean. Stack Blits Setup for you |
vue-macros/vue-macros#720 |
I need to write an object as the child not use a directive. <HelloWorld>
{
default(props:Record<string, unknown>) {
return props? props.value : "No props"
}
}
</HelloWorld> |
Because of the child maybe a variable to display string. const foo = 'hello world'
<HelloWorld>
{ foo }
</HelloWorld> |
Can the plugin be rewritten so that JSX works like React or Solid? |
|
Maybe I should add type hints only if the expression is written as an object. |
The plugin needs to be rewritten to support objects as child without using an expression. |
|
🧐 Problem Description
In Vue you are able to inject slots by using this syntax
But when I give types for slots I get no error regarding whether or not I'm typing the wrong one or not.
🚑 Other information
Here is a repo You can use to get what I mean. Vue JSX Example
The text was updated successfully, but these errors were encountered: