Skip to content
On this page

函数类型

  1. 单独指定参数、返回值的类型:
ts
const add = (n1: Number, n2: Number): Number => {
  return n1 + n2
}

。。。。。。。。