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 '(result: Result) => void' is not assignable to parameter of type '(value: awaited Result) => void | PromiseLike<void>' #37566

Closed
amcasey opened this issue Mar 24, 2020 · 0 comments · Fixed by #37610
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/PromiseQueue.ts#L35

packages/@css-blocks/core/src/util/PromiseQueue.ts:35:7 - error TS2345: Argument of type '(result: Result) => void' is not assignable to parameter of type '(value: awaited Result) => void | PromiseLike<void>'.
  Types of parameters 'result' and 'value' are incompatible.
    Type 'awaited Result' is not assignable to type 'Result'.
      'Result' could be instantiated with an arbitrary type which could be unrelated to 'awaited Result'.

35       (result: Result) => {
         ~~~~~~~~~~~~~~~~~~~~~

To repro:

  1. yarn
  2. tsc -b -f packages
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