-
-
Notifications
You must be signed in to change notification settings - Fork 633
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
fix: copy built-in awaited type #1242
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a24684f:
|
Thanks for reporting. I wasn't aware the issue with generics. |
Hey @dai-shi, sorry it took a long time to respond. I agree. We should probably use the built-in type and let |
It's not only about this type, but I try not to export private types (public types are defined in |
Interesting! |
@dai-shi I haven't got a response for the PR I made on downlevel-dts. In short, I've stumbled across this issue which I believe would be a problem merging this PR. For now, I believe we have two choices - keep the current state and open an a new bug issue, or merge it until further development. Honestly, I'm not happy with either of these options 🙁. |
Let's do this. Closing this PR for now. For your case, I think module augmentation would work. |
It fixes a bug when trying to use the atom in conjunction with generics. Given the following code:
I get the following error:
Using the built-in
Awaited
type fixes this issue.