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
In some cases, variables with inferred types get translated as __object in typescript.
This seems to happen when the type signature on the method is any.
)
(The diff of this PR will clean up after #3044 has been merged)
The error was in conflating "detecting a map type but not knowing
what the element type was" and "not detecting a map type" (these
cases could not be distinguished because both would result in
`undefined`).
Also remove an unnecessary argument to
`keyValueObjectLiteralExpression`.
Fixes#3026, fixes#3027.
---
By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].
[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
🐛 Bug Report
In some cases, variables with inferred types get translated as
__object
in typescript.This seems to happen when the type signature on the method is
any
.See example below.
The signature of the method used here is -
The text was updated successfully, but these errors were encountered: