Within this function, the first argument must be a function while the remaining arguments could be of any type and their length is unknown. How should I define the array type to have a known first element but unknown length and types for the rest?
// I attempted using ...args: [Function, any], however, eslint does not approve of the generic 'Function' type and throws an error
function test(...args: Array<????>) {
const [callbackFn, ...restOfArgs] = args;
// perform necessary actions
}