Use "import type" consistently in our TS code.

Review Request #13713 — Created April 8, 2024 and submitted — Latest diff uploaded

Information

Review Board
release-7.x

Reviewers

The ability to import something solely for its type information is a new
feature in TypeScript, and makes things easier for the compiler later.
This change updates all our existing code to use it where appropriate,
and makes things consistent so we always use import { type ... }
instead of sometimes having import type { ... }.

This also groups all the type imports before all the regular imports
within each import block.

Ran js-tests.

Commits

Files

    Loading...