// 函数没有返回值,那么函数的返回值类型为 void function greet(name: string): void { console.log('Hello', name) } greet('Ken')