TypeScript 3.7 Document
首页
白天
夜间
下载
阅读记录
书签管理
我的书签
添加书签
移除书签
编辑文档
Improved handling of structurally identical classes and instanceof expressions
来源 1
浏览
520
扫码
打印
2019-11-18 07:58:48
Example:
上一篇:
下一篇:
发布点评
Declaration Files
Introduction
Templates
Consumption
By Example
Library Structures
Do's and Don'ts
Deep Dive
Publishing
Handbook
Classes
Modules
Namespaces
Enums
Module Resolution
Declaration Merging
Interfaces
Functions
Type Inference
Variable Declarations
JSX
Generics
Type Compatibility
Basic Types
Triple-Slash Directives
Mixins
Iterators and Generators
Utility Types
Decorators
Advanced Types
Type Checking JavaScript Files
Symbols
Namespaces and Modules
Project Configuration
Compiler Options
Compiler Options in MSBuild
Integrating with Build Tools
Project References
tsconfig.json
Nightly Builds
Tutorials
React & Webpack
Migrating from JavaScript
Gulp
ASP.NET Core
TypeScript in 5 minutes
What's New
TypeScript 2.5
TypeScript 3.4
Overview
TypeScript 3.7
Uncalled Function Checks
// @ts-nocheck in TypeScript Files
Semicolon Formatter Option
3.7 Breaking Changes
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
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 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 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.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
Type assertion/cast syntax in checkJs/@ts-check mode
Deduplicated and redirected packages
The –preserveSymlinks compiler flag
Optional catch clause variables
TypeScript 3.6
TypeScript 3.7
TypeScript 2.9
TypeScript 2.3
TypeScript 2.1
TypeScript 2.2
TypeScript 2.8
TypeScript 1.5
TypeScript 3.5
TypeScript 1.6
TypeScript 2.4
TypeScript 1.8
TypeScript 1.7
TypeScript 1.4
TypeScript 3.0
TypeScript 3.1
TypeScript 2.7
TypeScript 3.3
TypeScript 2.6
TypeScript 2.0
TypeScript 1.3
TypeScript 1.1
TypeScript 3.2
暂无相关搜索结果!
本文档使用
全库网
构建
×
思维导图备注
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度