You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Array.prototype.splice has its "deleteCount" parameter optional. When omitted, all
items of the arrays are removed. This works with a polymer element
"splice" method, but the typing does not correspond and TypeScript
prevents it.
FixesPolymer#5366
Array.prototype.splice has its "deleteCount" parameter optional. When omitted, all
items of the arrays are removed. This works with a polymer element
"splice" method, but the typing does not correspond and TypeScript
prevents it.
Fixes#5366
Steps to Reproduce
Given a custom element
myElem
with an array propertymyArray
, I callExpected Results
TypeScript does not complain, array is cleared, matching ES specs for
Array.prototype.splice
Actual Results
TypeScript errors due to the third parameter being undefined
Versions
The text was updated successfully, but these errors were encountered: