Type error: Argument of type \'Function\' is not assignable to parameter of type \'(...args: any[]) any
Type \'Function\' provides no match for the signature \'(...args: