×
思维导图备注
TypeScript 3.7 Document
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
Tutorials
来源:微软
浏览
1135
扫码
分享
2019-11-18 07:58:48
TypeScript in 5 minutes
ASP.NET Core
Gulp
Migrating from JavaScript
React & Webpack
当前内容版权归
微软
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
微软
.
上一篇:
下一篇:
Tutorials
TypeScript in 5 minutes
ASP.NET Core
Gulp
Migrating from JavaScript
React & Webpack
What's New
Overview
TypeScript 3.7
Optional Chaining
Nullish Coalescing
Assertion Functions
Better Support for never-Returning Functions
(More) Recursive Type Aliases
–declaration and –allowJs
The useDefineForClassFields Flag and The declare Property Modifier
Build-Free Editing with Project References
Uncalled Function Checks
// @ts-nocheck in TypeScript Files
Semicolon Formatter Option
3.7 Breaking Changes
TypeScript 3.6
Stricter Generators
More Accurate Array Spread
Improved UX Around Promises
Better Unicode Support for Identifiers
import.meta Support in SystemJS
get and set Accessors Are Allowed in Ambient Contexts
Ambient Classes and Functions Can Merge
APIs to Support –build and –incremental
Semicolon-Aware Code Edits
Smarter Auto-Import Syntax
await Completions on Promises
New TypeScript Playground
TypeScript 3.5
Speed improvements
The Omit helper type
The –allowUmdGlobalAccess flag
Smarter union type checking
Higher order type inference from generic constructors
TypeScript 3.4
Faster subsequent builds with the –incremental flag
Higher order type inference from generic functions
Improvements for ReadonlyArray and readonly tuples
const assertions
Type-checking for globalThis
TypeScript 3.3
Improved behavior for calling union types
Incremental file watching for composite projects in –build –watch
TypeScript 3.2
strictBindCallApply
Generic spread expressions in object literals
Generic object rest variables and parameters
BigInt
Non-unit types as union discriminants
tsconfig.json inheritance via Node.js packages
The new –showConfig flag
Object.defineProperty declarations in JavaScript
TypeScript 3.1
Mapped types on tuples and arrays
Properties declarations on functions
Version selection with typesVersions
TypeScript 3.0
Tuples in rest parameters and spread expressions
New unknown top type
Support for defaultProps in JSX
reference directives
TypeScript 2.9
Support number and symbol named properties with keyof and mapped types
Generic type arguments in JSX elements
Generic type arguments in generic tagged templates
import types
Relaxing declaration emit visiblity rules
Support for import.meta
New –resolveJsonModule
–pretty output by default
New –declarationMap
TypeScript 2.8
Conditional Types
Improved control over mapped type modifiers
Improved keyof with intersection types
Better handling for namespace patterns in .js files
Per-file JSX factories
Locally scoped JSX namespaces
New –emitDeclarationsOnly
TypeScript 2.7
Constant-named properties
Strict Class Initialization
Definite Assignment Assertions
Fixed Length Tuples
Improved type inference for object literals
Improved handling of structurally identical classes and instanceof expressions
Type guards inferred from in operator
Support for import d from "cjs" form CommonJS modules with –esModuleInterop
Numeric separators
Cleaner output in –watch mode
Prettier –pretty output
TypeScript 2.6
Strict function types
Support for JSX Fragment Syntax
Cache tagged template objects in modules
Localized diagnostics on the command line
Suppress errors in .ts files using ‘// @ts-ignore’ comments
Faster tsc –watch
Write-only references now flagged as unused
TypeScript 2.5
Optional catch clause variables
Type assertion/cast syntax in checkJs/@ts-check mode
Deduplicated and redirected packages
The –preserveSymlinks compiler flag
TypeScript 2.4
Dynamic Import Expressions
String Enums
Improved inference for generics
Strict contravariance for callback parameters
Weak Type Detection
TypeScript 2.3
Generators and Iteration for ES5/ES3
Async Iteration
Generic parameter defaults
New –strict master option
Enhanced –init output
Errors in .js files with –checkJs
TypeScript 2.2
Support for Mix-in classes
object type
Support for new.target
Better checking for null/undefined in operands of expressions
Dotted property for types with string index signatures
Support for spread operator on JSX element children
New jsx: react-native
TypeScript 2.1
keyof and Lookup Types
Mapped Types
Partial, Readonly, Record, and Pick
Object Spread and Rest
Downlevel Async Functions
Support for external helpers library (tslib)
Untyped imports
Support for –target ES2016, –target ES2017 and –target ESNext
Improved any Inference
Implicit any errors
Better inference for literal types
Use returned values from super calls as ‘this’
Configuration inheritance
New –alwaysStrict
TypeScript 2.0
Null- and undefined-aware types
Control flow based type analysis
Tagged union types
The never type
Read-only properties and index signatures
Specifying the type of this for functions
Glob support in tsconfig.json
Module resolution enhancements: BaseUrl, Path mapping, rootDirs and tracing
Shorthand ambient module declarations
Wildcard character in module names
Support for UMD module definitions
Optional class properties
Private and Protected Constructors
Abstract properties and accessors
Implicit index signatures
Including built-in type declarations with –lib
Flag unused declarations with –noUnusedParameters and –noUnusedLocals
Module identifiers allow for .js extension
Support ‘target : es5’ with ‘module: es6’
Trailing commas in function parameter and argument lists
New –skipLibCheck
Allow duplicate identifiers across declarations
New –declarationDir
TypeScript 1.8
Type parameters as constraints
Control flow analysis errors
Stateless Function Components in React
Simplified props type management in React
Augmenting global/module scope from modules
String literal types
Improved union/intersection type inference
Concatenate AMD and System modules with –outFile
Support for default import interop with SystemJS
Allow captured let/const in loops
Improved checking for for..in statements
Modules are now emitted with a "use strict"; prologue
Including .js files with –allowJs
Custom JSX factories using –reactNamespace
this-based type guards
Official TypeScript NuGet package
Prettier error messages from tsc
Colorization of JSX code in VS 2015
The –project (-p) flag can now take any file path
Allow comments in tsconfig.json
Support output to IPC-driven files
Improved support for tsconfig.json in Visual Studio 2015
TypeScript 1.7
async/await support in ES6 targets (Node v4+)
Support for –target ES6 with –module
this-typing
ES7 exponentiation operator
Improved checking for destructuring object literal
Support for decorators when targeting ES3
TypeScript 1.6
JSX support
Intersection types
Local type declarations
Class expressions
Extending expressions
abstract classes and methods
Generic type aliases
Stricter object literal assignment checks
ES6 generators
Experimental support for async functions
Nightly builds
Adjustments in module resolution logic
Merging ambient class and interface declaration
User-defined type guard functions
exclude property support in tsconfig.json
–init command line option
TypeScript 1.5
ES6 Modules
Destructuring in declarations and assignments
namespace keyword
let and const support
for..of support
Decorators
Computed properties
Support for UMD and System module output
Unicode codepoint escapes in strings
Tagged template strings in ES3/ES5
AMD-dependency optional names
Project support through tsconfig.json
–rootDir command line option
–noEmitHelpers command line option
–newLine command line option
–inlineSourceMap and inlineSources command line options
TypeScript 1.4
Union types
let declarations
const declarations
Template strings
Type Guards
Type Aliases
const enum (completely inlined enums)
-noEmitOnError commandline option
AMD Module names
TypeScript 1.3
Protected
Tuple types
TypeScript 1.1
Performance Improvements
Better Module Visibility Rules
TypeScript 3.7
TypeScript 3.6
TypeScript 3.5
TypeScript 3.4
TypeScript 3.3
TypeScript 3.2
TypeScript 3.1
TypeScript 3.0
TypeScript 2.9
TypeScript 2.8
TypeScript 2.7
TypeScript 2.6
TypeScript 2.5
TypeScript 2.4
TypeScript 2.3
TypeScript 2.2
TypeScript 2.1
TypeScript 2.0
TypeScript 1.8
TypeScript 1.7
TypeScript 1.6
TypeScript 1.5
TypeScript 1.4
TypeScript 1.3
TypeScript 1.1
Handbook
Basic Types
Variable Declarations
Interfaces
Classes
Functions
Generics
Enums
Type Inference
Type Compatibility
Advanced Types
Symbols
Iterators and Generators
Modules
Namespaces
Namespaces and Modules
Module Resolution
Declaration Merging
JSX
Decorators
Mixins
Triple-Slash Directives
Type Checking JavaScript Files
Utility Types
Declaration Files
Introduction
Library Structures
By Example
Do's and Don'ts
Deep Dive
Templates
Publishing
Consumption
Project Configuration
tsconfig.json
Compiler Options
Project References
Compiler Options in MSBuild
Integrating with Build Tools
Nightly Builds
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度