Use "import type" consistently in our TS code.
Review Request #13713 — Created April 8, 2024 and submitted — Latest diff uploaded
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 useimport { type ... }
instead of sometimes havingimport type { ... }
.This also groups all the
type
imports before all the regular imports
within each import block.
Ran js-tests.