美文网首页
typescript 类型

typescript 类型

作者: peerben | 来源:发表于2020-03-04 16:05 被阅读0次

Conditional types in which the checked type is a naked type parameter are called distributive conditional types. Distributive conditional types are automatically distributed over union types during instantiation. For example, an instantiation of T extends U ? X : Y with the type argument A | B | C for T is resolved as (A extends U ? X : Y) | (B extends U ? X : Y) | (C extends U ? X : Y)

相关文章

网友评论

      本文标题:typescript 类型

      本文链接:https://www.haomeiwen.com/subject/akqblhtx.html