Skip to content

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

Closed
@amcasey

Description

@amcasey

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions