起步
文档
(current)
下载
联系
练习
更新
Toggle navigation
TypeScript 3.1 现已发布。立即
下载
我们的最新版本!
选择...
经典JavaScript
添加类型
使用类
使用继承
使用泛型
联合类型及类型守卫
构建Raytracer
TypeScript
分享
编译项
noImplicitAny
Trigger an error if TypeScript uses 'any' whenever it can't infer a type.
strictNullChecks
Makes types non-nullable by default, catching a broad class of errors.
strictFunctionTypes
Disable bivariant parameter checking for function types.
strictPropertyInitialization
Ensure non-undefined class properties are initialized in the constructor.
noImplicitThis
Flag locations where the type of a 'this' expression implicitly has the type 'any'.
noImplicitReturns
Error on functions which do not return from every branch.
运行
JavaScript