I\'m trying to do something like this:
const getParams = ( cb: number | ((...args: any[]) => any) ): typeof cb extends number ? [] : Parameters