I want to get the parameters of a function that is saved in different modules. For example myFunction gets the function I desired, then it should be executed with the correct parameters. However the Parameters line shows the following error: Type 'Function' does not satisfy the constraint
public Execute(module: any, myFunction: Function, params: string){
type TestArgsType = Parameters<typeof myFunction>;
myFunction.apply(module, params);
}
Is there any way to use the Parameters with a function passed as a parameter?