-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Element.setAttribute
global is re-declared for the user
#615
Labels
Comments
mightyiam
changed the title
Review our declaration of global Element type
Review our declaration of Element.setAttribute(NS)
May 10, 2020
mightyiam
changed the title
Review our declaration of Element.setAttribute(NS)
Do not re-declare May 17, 2020
Element.setAttribute
for the user
This results in a re-declaration of the global for the user — not only in our project. https://unpkg.com/browse/[email protected]/modules/attributes.d.ts We should not declare globals for our users if we don't have to. And we don't have to. |
mightyiam
changed the title
Do not re-declare
May 17, 2020
Element.setAttribute
for the userElement.setAttribute
global is re-declared for the user
mightyiam
added a commit
that referenced
this issue
May 17, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
mightyiam
added a commit
that referenced
this issue
May 17, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
mightyiam
added a commit
that referenced
this issue
May 24, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
mightyiam
added a commit
that referenced
this issue
May 30, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
mightyiam
added a commit
that referenced
this issue
Jun 13, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
mightyiam
added a commit
that referenced
this issue
Jun 13, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
mightyiam
added a commit
that referenced
this issue
Jun 13, 2020
BREAKING CHANGE: Types exported by this package have re-declared the global `Element.setAttribute` and `Element.setAttributeNS` to accept `number` and `boolean` for the `value` parameter. This change removes that re-declaration and thus the only valid value is `string`. If your code provides `number` and/or `boolean`, then it may now fail to compile. Fixes #615.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
snabbdom/src/modules/attributes.ts
Lines 4 to 10 in a42c31a
The text was updated successfully, but these errors were encountered: