type 关键字
时间:2021-06-29 16:13:54
收藏:0
阅读:0
type常用用法
type words = (word: string) => string //type 定义函数类型
type methodType = ‘GET‘ | ‘POST‘ | ‘get‘ | ‘post‘ //定义字面量类型
评论(0)