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
lib/util/objectToMap.js:9:17 - error TS2345: Argument of type 'any[][]' is not assignable to parameter of type 'Iterable<[any, any]>'.
Types of property '[Symbol.iterator]' are incompatible.
Type '() => IterableIterator<any[]>' is not assignable to type '() => Iterator<[any, any]>'.
Type 'IterableIterator<any[]>' is not assignable to type 'Iterator<[any, any]>'.
Types of property 'next' are incompatible.
Type '{ (value?: any): IteratorResult<any[]>; (value?: any): IteratorResult<any[]>; }' is not assignable to type '{ (value?: any): IteratorResult<[any, any]>; (value?: any): IteratorResult<[any, any]>; }'.
Type 'IteratorResult<any[]>' is not assignable to type 'IteratorResult<[any, any]>'.
Type 'any[]' is not assignable to type '[any, any]'.
Property '0' is missing in type 'any[]'.
9 return new Map(Object.keys(obj).map(key => [key, obj[key]]));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
During my work at webpack/webpack#6862 I noticed this error.
TypeScript Version: 2.7.8-rc
Search Terms:
Code
https://github.com./webpack/webpack/blob/master/lib/util/objectToMap.js
Expected behavior:
No error
Actual behavior:
The text was updated successfully, but these errors were encountered: