export type Func = (...args: Args[]) => T; export const isFunc = (o?: unknown): o is (...params: Args[]) => T => !!o && typeof o === 'function';