Type Buddy:一款帮助你理解 TypeScript 类型的 VS Code 插件

71次阅读
没有评论

共计 149 个字符,预计需要花费 1 分钟才能阅读完成。

Write your normal types in here

type A<T> = T extends string ? true : false;
TypeScript

Write your types as functions

function A(T) {if (T extends string) {return true;} else {return false;}
}
Bash

正文完
 0
评论(没有评论)
验证码