npm install typescript -g const hello =(name:string)=>{ return `hello ${name}` } hello("viking") tsc 进行编译