-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add toggleAttribute to excluded identifiers #5371
Conversation
TypeScript 3.1 added `Element.toggleAttribute(name, force?)` to its DOM typings which is compatible but not identical to `LegacyElementMixin.toggleAttribute(name, force?, element?)`
Interesting, in the project i tried it on, I was using a few I'll take a look and get back to it |
@43081j Specifically, I had issues with
|
yup this is reproducible here. strangely my local project which uses paper-dialog builds fine with the type change (from void to bool). still investigating why mine builds and the TS repro doesn't. |
🙈 @TimvdLippe it turns out Is it possible we could output the built in signature but still call it in JS with the extra parameter? It sounds hacky... but can't think of a better solution |
I think that is the way to go right now :(
…On Thu, Oct 11, 2018 at 12:33 PM James Garbutt ***@***.***> wrote:
🙈
@TimvdLippe <https://github.com/TimvdLippe> it turns out skipLibCheck had
slipped into my tsconfig. I can now reproduce this locally too.
Is it possible we could output the built in signature but still call it in
JS with the extra parameter? It sounds hacky... but can't think of a better
solution
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5371 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFrDbw9zfZpatjW6XgMDZ2g576Esp5pmks5ujyx8gaJpZM4XNzAD>
.
|
TypeScript 3.1 added
Element.toggleAttribute(name, force?)
to its DOM typings which is compatible but not identical toLegacyElementMixin.toggleAttribute(name, force?, element?)
#5370 fixes the compatibility issue, but tsc still errors:
This patch removes the custom typing of
toggleAttribute()
. We did this before withscroll()
in iron-scroll-target-behavior (PolymerElements/iron-scroll-target-behavior#48).