TypeScript Type-Only Imports and Exports

If you&rsquo;ve been writing TypeScript for a while, you might have written code like this: // utils.ts export type Color = 'red' | 'blue' | 'green' ; // app.tsx import { Color } from './utils' ; As of TypeScript 3.8, there&rsquo;s a better way to import! // app.tsx import type { Color } from './utils' ;