type M = Concat<T1,T2,...,TN> //or Concat<[T1,T2,...,TN]>
//get ['a','b','c','d','e','f',...]//A rest element must be last in a tuple type. 我希望将多个元组类型合并为一个元组。如何定义
我想创建一个将形状[...T[]]的元组映射到[...TodoStepBlueprint<T>[]]的类型。 我对typescript的知识有限,但我想我明白我到目前为止所做的事情。这是我到目前为止所做的:(这是How to 'map' a Tuple to another Tuple type in Typescript 3.0的一个扩展)使用typescr