Appearance
type AllButLast<T> = T extends [...infer H, infer L] ? H : any[];
Extracts all elements of a tuple except the last one.
T
any