Skip to content

typescript: "type" scope doesn't support return type of function type #3065

@pokey

Description

@pokey

In the following:

let foo: () => Promise<string>;

We support "type" for:

  • () => Promise<string>
  • string

But not:

  • Promise<string>

This seems inconsistent. If string is a type, then I'd argue that Promise<string> should be as well

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions