TypeScript:TypeOnlyImportAndExport
lastmod 2023-08-13created 2022-04-132 edits
About
This syntax lets you distinguish imports that do not need to be used at runtime.
Imports/exports judged to be unused (imports/exports of types and interfaces) are excluded from the compiled output.
This helps prevent unexpected errors and also reduces the build output.