TypeScript Type-Only Imports and Exports 0 ▲ Jake Worth 1 hour ago · Tech · hide · 0 comments If you’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’s a better way to import! // app.tsx import type {Color} from './utils'; No comments yet. Log in to reply on the Fediverse. Comments will appear here.