-
Notifications
You must be signed in to change notification settings - Fork 319
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
customElement decorator should use type string for tagName
#291
Comments
Seconding this. I just ran into this issue while testing out lit element on an existing component. |
It looks like the issues is that TypeScript is converting |
@nrdobie That's because that long list is what |
@jhpratt what I meant by incorrect setting was TypeScript reducing it down to that list of strings rather then preserving the |
Just ran into this, would be a nice fix. @nrdobie how would changing to |
Functionally it won't but it doesn't require the HTML tag list to be
updated for TypeScript. I know I'm splitting hairs and I don't really have
a strong opinion. I can union this with string and get the best of both.
…On Fri, Dec 7, 2018, 3:22 PM Duncan ***@***.***> wrote:
Just ran into this, would be a nice fix. @nrdobie
<https://github.com/nrdobie> how would changing to string change the
behavior?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#291 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAq41T08B9bQBnclEJtUBmCfmAl-RDzoks5u2twzgaJpZM4YPcps>
.
|
Can someone explain the reasoning for having |
Fixed via #292. |
This cast was previously necessary for weird reasons: see lit/lit-element#291
This is currently
keyof HTMLElementTagNameMap
but this doesn't work nicely in TypeScript right now and the result is you have to cast toany
. Instead we should just usestring
for now.The text was updated successfully, but these errors were encountered: