declare type TFunc = (...args: any[]) => any