Open david2tdw opened 4 years ago
typescript里的 =>
=>
var MakePoint: () => { x: number; y: number; };
表示MakePoint的值是一个函数,这个函数没有参数,返回值是一个对象,这个对象包含两个值x 和y。
编译地址:
https://www.typescriptlang.org/play/index.html
What's the meaning of “=>” in TypeScript? (Fat Arrow)
typescript里的
=>
表示MakePoint的值是一个函数,这个函数没有参数,返回值是一个对象,这个对象包含两个值x 和y。
编译地址:
https://www.typescriptlang.org/play/index.html
What's the meaning of “=>” in TypeScript? (Fat Arrow)