Open DerGernTod opened 4 years ago
TypeScript Version: 3.9.x-dev.20200627
Search Terms: strictBindCallApply NodeList
Code
const bodyChildren = document.body.childNodes; const arr: Node[] = []; arr.push.apply(arr, bodyChildren);
Expected behavior: Doesn't throw errors.
Actual behavior: Throws errors on line 3: Argument of type 'NodeListOf' is not assignable to parameter of type 'Node[]'. Type 'NodeListOf' is missing the following properties from type 'Node[]': pop, push, concat, join, and 19 more.
Playground Link: Playground Link
Related Issues: Couldn't find any.
Possibly related: #36554
TypeScript Version: 3.9.x-dev.20200627
Search Terms: strictBindCallApply NodeList
Code
Expected behavior: Doesn't throw errors.
Actual behavior: Throws errors on line 3: Argument of type 'NodeListOf' is not assignable to parameter of type 'Node[]'.
Type 'NodeListOf' is missing the following properties from type 'Node[]': pop, push, concat, join, and 19 more.
Playground Link: Playground Link
Related Issues: Couldn't find any.