flake8
passed.
JSHint
passed.
Review Request #13713 — Created April 8, 2024 and submitted
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.
Summary | ID |
---|---|
76e897a98458924a87f4e72230ef708d775266ed |
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 | |
+ | within each import block. |
Summary | ID | |
---|---|---|
abe6ec7918145ffe647eb83acce61543c6fc1af6 | ||
76e897a98458924a87f4e72230ef708d775266ed |
Revision 2 (+512 -280)