-
Notifications
You must be signed in to change notification settings - Fork 41
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
Problem with custom directives (no-incompatible-type-binding) #207
Problem with custom directives (no-incompatible-type-binding) #207
Comments
const cond = (condition: boolean, value: any) => (condition ? value : nothing)
Edit: ignore this comment. Of course this works, I'm opting out of type checking with |
I'm having the same problem and I actually would expect the attribute binding to work all the same. In my case, I have a directive which does translation For now it appears that I have to bind |
I have been trying to write a simple custom directive which simplifies some use-cases for
ifDefined
:Cribbing from ifDefined, I came up with this directive:
This directive works just fine at runtime, but the vscode plugin complains:
So I also tried creating a directive as recommended in the lit docs:
But now i get a different error:
Again, the directive itself works fine at runtime...
I tried following the advice in the error message but then I get a different error again:
Am I doing something wrong here, or is this a bug with lit-analyzer?
The text was updated successfully, but these errors were encountered: