I have an function:
const myFunc = (callback: (...params: any) => void, params: [any]): void => {
callback(...params);
};
//sample of using
myFunc((name: string) => { console.log(name) }, ["Mark"])
The myFunc takes callback and parameters. How to avoid "any" and provide that params in both case have same type? p.s. (callback: (...params: T) => void, params: [T]) = doesn't work...