Open AnathanPham opened 3 years ago
一般形式
function Play<Type>(game:Type):Type{ // ... }
箭头函数
type Play = <Type>(game:Type)=>Type
对象字面量 方便定义函数的静态属性
type Play = { <Type>(game:Type):Type }
一般形式箭头函数
对象字面量 方便定义函数的静态属性