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
{{ message }}
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
Argument of type 'string[][]' is not assignable to parameter of type '{ [key: string]: {}; }'. Index signature is missing in type 'string[][]'
In my opinion, it works that way because we have an overloaded Map functions at definitions file, and typescript choosing second variant instead of first.
From @Gerasimov94 on Fri, 26 Apr 2019 14:26:38 GMT
Hello, i found an interesting issue. When i am passing an object in Map it works fine:
But when i am trying to pass an array like on screen below, compiler complains:
I took a that variant from here: https://immutable-js.github.io/immutable-js/docs/#/Map/Map
Argument of type 'string[][]' is not assignable to parameter of type '{ [key: string]: {}; }'. Index signature is missing in type 'string[][]'
In my opinion, it works that way because we have an overloaded Map functions at definitions file, and typescript choosing second variant instead of first.
ts version: 3.3.333333
Copied from original issue: immutable-js#1706
The text was updated successfully, but these errors were encountered: