Files
dspace-angular/src/app/core/shared/generic-constructor.ts

8 lines
211 B
TypeScript

/**
* ensures we can use 'typeof T' as a type
* more details:
* https://github.com/Microsoft/TypeScript/issues/204#issuecomment-257722306
*/
export type GenericConstructor<T> = { new (...args: any[]): T };