Skip to content

Latest commit

 

History

History

00010-medium-tuple-to-union

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Tuple to Union medium #infer #tuple #union

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

Implement a generic TupleToUnion<T> which covers the values of a tuple to its values union.

For example

type Arr = ['1', '2', '3']

type Test = TupleToUnion<Arr> // expected to be '1' | '2' | '3'

Back Share your Solutions Check out Solutions

Related Challenges

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object