Skip to content

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

Closed
@amcasey

Description

@amcasey
Member

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

Activity

added this to the TypeScript 3.9.1 milestone on Mar 24, 2020
amcasey

amcasey commented on Mar 24, 2020

@amcasey
MemberAuthor

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @rbuckton@amcasey

    Issue actions

      New error: Argument of type 'awaited T' is not assignable to parameter of type 'T'. · Issue #37567 · microsoft/TypeScript