// @declaration: true const f = (...args: [...TFirstArgs, TLastArg]): void => {};