Skip to content

Glossary: TypeScript Beyond the Basics

rewriteRelativeImportExtensions

A tsconfig option that lets you write `"./types.ts"` in imports while `tsc` changes them to `.js` in the output. Both Node running source and Node running `dist` then work.

Where the book teaches it

Related terms

import typeType stripping