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

429次阅读
一条评论

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

Write your normal types in here

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

Write your types as functions

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

正文完
 0
评论(一条评论)
验证码
2025-08-28 16:40:28 回复

我来看看是咋么回事

 Windows  Chrome  中国北京北京市铁通