export type LastArgument = T extends (...args: [...any[], infer Last]) => any ? Last : never