UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

5 lines (4 loc) 200 B
/** Helper type to create a new tuple containing all but the last element of another tuple. */ export type AllButLast<T extends unknown[]> = T extends [...infer Head, unknown] ? Head : unknown[];