I am creating a configuration class, and I would like to add a property to assign any type of functions, with any return type and any number of parameters.
How can I declare this ?
I tried this:
export class ParamClass {
param1: string;
param2: string;
onclick: (...args: any[]) => {};
}
This is working but the return type of the assigned method cannot be void.