Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 502 Bytes

typescript-2.3.md

File metadata and controls

13 lines (9 loc) · 502 Bytes

TypeScript 2.3

完整的破坏性改动列表请到这里查看:breaking change issues.

空的泛型列表会被标记为错误

示例

class X<> {} // Error: Type parameter list cannot be empty.
function f<>() {} // Error: Type parameter list cannot be empty.
const x: X<> = new X<>(); // Error: Type parameter list cannot be empty.