-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object map style can not use getType to get type to be used as map key #140
Comments
Hey @MasGaNo
|
@MasGaNo Sorry my bad, I was too quick, I just noticed it is there :) |
Yeah, sorry, I tried to summarize, but yeah, I provided the But yeah, which both approach, I face the same problem for |
@MasGaNo you're right I have reproduced it and added a new test case, I think I can make it work but cannot confirm right now as I need some time to investigate. |
Sure no problem 🙂 |
@MasGaNo thanks it works great 👍 Fix is on the way! Regarding getType, we need to open a separate issue tracking a previously known TS compiler bug: microsoft/TypeScript#29718 |
I think a way to get ride the need of Could be interesting to keep an eye on it. |
Description
Hey @piotrwitek
Just try out the latest version and it's a real improvement. I like this idea, it's very flexible and it simplify more the way to organize file.
I just have a small issue with the
initialHandlers
approach, the type of the action is not provided anymore. Works perfectly with thehandleAction
approach.Related issues
#106
Steps to Reproduce
Consider we have this action:
CodeSandbox to help you reproduce issue in isolation
https://codesandbox.io/s/64ow9qxl3z
Expected behavior
Having the
action
correctly type like forhandleAction
.Suggested solution(s)
Can investigate.
Correct me if I'm wrong, for the
getType
approach, we need to wait the fix from TypeScript.But for explicit constant approach, should display the correct typing, shouldn't it?
Project Dependencies
PS: Good job for this release 👍
The text was updated successfully, but these errors were encountered: