-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
intersection with typescript libs #5
Comments
Tell me if I'm wrong, to solve this at some extent we just need to normalize the variable names to avoid This issue actually brings up a problem with intersection types when one part of the intersection is a function. That is going to either fail miserably in the same way as the Maybe we need to review how we handle intersection types? |
Yes, so the problem is how we are handling intersection types. Right now is using getPropertyOfTypes from typescript api, and that functionality try to fetch all the properties of a real Promise. We definitely have to solve Symbol.toStringTag and I have to make sure that the type is converted to our Promise before converting it. Unfortunately the conversion of the Promise is not centralised yet |
@uittorio I think this is already working. The behaviour is that if something comes from typescript types it ignores it completely. Let me know if this can be closed |
We can ignore this issue with the assumption that we ignore typescript libs for intersections. If we are happy with that we can close it for now. If in the future we need the functionality we can open a new issue |
I wrote some test scenario with jasmine to simplify the explanation
The text was updated successfully, but these errors were encountered: