Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

🐛 Some TypeScript utility types detected as undeclared with noUndeclaredVariables enabled #4643

@public

Description

@public

Environment information

Playground and nightly.

What happened?

Playground Example

Rome doesn't seem to know about all of the utility types that exist in TS.

For example:

async function f() {}

type T = Awaited<typeof f>;

The noUndeclaredVariables rule will claim Awaited is not defined. This is not true. It is built in. There are probably more of these.

Expected result

All TypeScript utility types are treated as declared.

Code of Conduct

  • I agree to follow Rome's Code of Conduct

Metadata

Metadata

Assignees

Labels

I-EasyImplementation: easy task, usually a good fit for new contributorsS-Bug: confirmedStatus: report has been confirmed as a valid bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions