mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
7 lines
187 B
TypeScript
7 lines
187 B
TypeScript
import { Equal, Expect } from '@type-challenges/utils'
|
|
|
|
type cases = [
|
|
Expect<Equal<TupleToUnion<[123, '456', true]>, 123 | '456' | true>>,
|
|
Expect<Equal<TupleToUnion<[123]>, 123>>,
|
|
]
|