AllButLast
Type Aliases
AllButLast
Ƭ AllButLast<T
>: T
extends [...(infer Head), unknown
] ? Head
: unknown
[]
Helper type to create a new tuple containing all but the last element of another tuple.
Type parameters
Name | Type |
---|
T | extends unknown [] |
Defined in
packages/isaacscript-common/src/types/AllButLast.ts:2