ts-std-lib
Version:
A standard library for typescript
14 lines (10 loc) • 348 B
text/typescript
// tslint:disable: ban-types
// https://stackoverflow.com/questions/36886082/abstract-constructor-type-in-typescript
/**
* A non-instantiable class
*/
export type AbstractConstructor<T> = Function & { readonly prototype: T };
/**
* an instantiable class
*/
export type Constructor<T> = (new (...args: ReadonlyArray<any>) => T);