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: Type 'awaited T' is not assignable to type 'T'. #37564

Closed
amcasey opened this issue Mar 24, 2020 · 2 comments · Fixed by #37610
Closed

New error: Type 'awaited T' is not assignable to type 'T'. #37564

amcasey opened this issue Mar 24, 2020 · 2 comments · Fixed by #37610
Assignees

Comments

@amcasey
Copy link
Member

amcasey commented Mar 24, 2020

https://github.com/conventional-changelog/commitlint/blob/0f0f95affc1c350fdb3e3c58eda48f9a845dfb27/@commitlint/execute-rule/src/index.ts#L20

@commitlint/execute-rule/src/index.ts:20:16 - error TS2322: Type 'awaited T' is not assignable to type 'T'.
  'T' could be instantiated with an arbitrary type which could be unrelated to 'awaited T'.

20  return [name, await fn()];
                  ~~~~~~~~~~

To repro:

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

amcasey commented Mar 25, 2020

https://github.com/eclipse-theia/theia/blob/9d59a4e0c51712cb260d29d98061dec0c5f5884c/packages/core/src/common/types.ts#L46

  1. yarn --ignore-engines
  2. tsc -b -f configs/root-compilation.tsconfig.json

@amcasey
Copy link
Member Author

amcasey commented Mar 25, 2020

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