mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
7 lines
176 B
TypeScript
7 lines
176 B
TypeScript
import { Equal, Expect } from '@type-challenges/utils'
|
|
|
|
type cases = [
|
|
Expect<Equal<Last<[3, 2, 1]>, 1>>,
|
|
Expect<Equal<Last<[() => 123, { a: string }]>, { a: string }>>,
|
|
]
|