export function isClass(func: T) { return ( typeof func === 'function' && /^class\s/.test(Function.prototype.toString.call(func)) ); }