tiny-types
Version:
A tiny library that brings Tiny Types to JavaScript and TypeScript
6 lines (5 loc) • 401 B
text/typescript
/* eslint-disable @typescript-eslint/ban-types */
export type Constructor<T> = new (...args: any[]) => T;
export type ConstructorOrAbstract<T = {}> = Function & { prototype: T }; // tslint:disable-line:ban-types
export type ConstructorAbstractOrInstance<T = {}> = T | ConstructorOrAbstract; // tslint:disable-line:ban-types
/* eslint-enable @typescript-eslint/ban-types */