Skip to content
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

New error: Argument of type 'awaited T' is not assignable to parameter of type 'T'. #37567

Closed
amcasey opened this issue Mar 24, 2020 · 1 comment · Fixed by #37610
Closed
Assignees

Comments

@amcasey
Copy link
Member

amcasey commented Mar 24, 2020

https://github.com/linkedin/css-blocks/blob/6023475e9ab9a01cda6daa71986a9b4932c16ecd/packages/@css-blocks/core/src/util/allDone.ts#L17

packages/@css-blocks/core/src/util/allDone.ts:17:20 - error TS2345: Argument of type 'awaited T' is not assignable to parameter of type 'T'.
  'T' could be instantiated with an arbitrary type which could be unrelated to 'awaited T'.

17       results.push(await p);
                      ~~~~~~~

To repro:

  1. yarn
  2. tsc -b -f packages
@amcasey amcasey added this to the TypeScript 3.9.1 milestone Mar 24, 2020
@amcasey
Copy link
Member Author

amcasey commented Mar 24, 2020

Might be fallout from #37566 (or vice versa).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants