export type StaticClass = Function & {prototype: T} & T2 export function isStaticClass(something: any): something is StaticClass { return typeof something === 'function' && typeof something.prototype !== 'undefined' }