TypeScript 3.8 类型导入和导出(Type-Only Imports and Exports) ECMAScript 私有变量(ECMAScript Private Fields Which should I use? export * as ns Syntax 顶层await(Top-Level await) es2020 for...
Using TypeScript Using TypeScript In this chapter we will discuss: Overview of TypeScript in Deno Configuring TypeScript in Deno Types and Type Declarations Migrating to/f...
async/await support in ES6 targets (Node v4+) Example Support for —target ES6 with —module Example this-typing ES7 exponentiation operator Example Improved checking for dest...
keyof and Lookup Types Example Example Mapped Types Partial, Readonly, Record, and Pick Object Spread and Rest Downlevel Async Functions Example tsconfig.json dramaticWelco...
Dynamic Import Expressions String Enums Improved inference for generics Return types as inference targets Type parameter inference from contextual types Stricter checking for g...
Optional catch clause variables Type assertion/cast syntax in checkJs/@ts-check mode Deduplicated and redirected packages The —preserveSymlinks compiler flag Optional catch ...
Conditional Types Example Distributive conditional types Example Example Example Type inference in conditional types Predefined conditional types Example Improved control ...