TypeScript: Documentation - TypeScript 3.8
typescriptlang.org · 3,017 words · saved by 1 readers
TypeScript 3.8 Release Notes
Type-Only Imports and Export This feature is something most users may never have to think about; however, if you’ve hit issues under isolatedModules , TypeScript’s transpileModule API, or Babel, this feature might be relevant. TypeScript 3.8 adds a new syntax for type-only imports and exports. ts import type { SomeThing } from "./some-module.js" ; export type { SomeThing }; import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there’s no remnant of it at runtime. Similarly, export type only provides an export that can be used fo
related reading
- TypeScript: Documentation - TypeScript 3.7typescriptlang.org
- TypeScript: Documentation - TypeScript for the New Programmertypescriptlang.org
- TypeScript: Documentation - Classestypescriptlang.org
- TypeScript: Documentation - The Basicstypescriptlang.org
- TypeScript: Documentation - Object Typestypescriptlang.org
- Configuring ESLint and Prettier for TypeScriptyoutube.com
- TypeScript: Documentation - Decoratorstypescriptlang.org
- Useful Patterns by Use Case | React TypeScript Cheatsheetreact-typescript-cheatsheet.netlify.app
- TypeScript: Documentation - More on Functionstypescriptlang.org
- Typescript utility types that you must know - DEV Communitydev.to
- Reading 8: Defining ADTs with Interfaces, Generics, Enums, and Functionsweb.mit.edu
- TypeScript: Handbook - Enumstypescriptlang.org