Skip to content

Glossary: TypeScript Beyond the Basics

import type

Also written: type-only import, import { type X }

An import that is removed completely when the code is compiled. Types must be imported this way when Node strips types and `verbatimModuleSyntax` is on.

Where the book teaches it

Related terms

verbatimModuleSyntaxType stripping