Use "import type" consistently in our TS code.

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

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.

Summary ID
Use "import type" consistently in our TS code.
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. Testing Done: Ran js-tests.
76e897a98458924a87f4e72230ef708d775266ed
maubin
  1. Ship It!
  2. 
      
david
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-7.x (ec9d301)
Loading...