Skip to content
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

Some setAttribute calls value args are any #676

Open
mightyiam opened this issue Jun 14, 2020 · 0 comments
Open

Some setAttribute calls value args are any #676

mightyiam opened this issue Jun 14, 2020 · 0 comments

Comments

@mightyiam
Copy link
Contributor

elm.setAttribute(key, cur as any)
} else if (key.charCodeAt(3) === colonChar) {
// Assume xml namespace
elm.setAttributeNS(xmlNS, key, cur as any)
} else if (key.charCodeAt(5) === colonChar) {
// Assume xlink namespace
elm.setAttributeNS(xlinkNS, key, cur as any)
} else {
elm.setAttribute(key, cur as any)

After a release it should be easy to replace these with @ts-expect-error.

@mightyiam mightyiam self-assigned this Jun 14, 2020
@mightyiam mightyiam removed their assignment Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant