//如下
function greet(person:string){....}
let msg ='niuniu';
msg='guagua';
msg=100;//报错
target:'es5'
设为es5,那么编译后的js文件,符合es5规范,能够在兼容es5的浏览器运行
将新版本ECMA编译为旧版本,成为降级。
strict:true;
设置为true,则已经包含下面两个
noImplicitAny:true;
校验不能把类型设置为any,或者没有设置类型值
strictNullChecks:true;
校验null和undefined不能赋值给其他类型的变量
let student:string =undefined//就会报错。
outDir:'./dist'
rootDir:'/src'