UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

8 lines (7 loc) 209 B
/** Helper type to create a new tuple containing all but the first element of another tuple. */ export type AllButFirst<T extends unknown[]> = T extends [ unknown, ...infer Tail, ] ? Tail : unknown[];