例如我有类型
type abc = 'a' | 'b' | 'c';
如何使元组类型在编译时包含联合的所有元素?
type t = ['a','b', 'c'];
typescript
typescript ×1