type 关键字

时间:2021-06-29 16:13:54   收藏:0   阅读:0

 

type常用用法
  type words = (word: string) => string //type 定义函数类型
  type methodType = ‘GET‘ | ‘POST‘ | ‘get‘ | ‘post‘ //定义字面量类型
评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!