export interface ClassConstructor { new (): unknown } export const nameOf = unknown)>(a: T) => { return a.name }