@creamapi/cream
Version:
Concise REST API Maker - An extension library for express to create REST APIs faster
14 lines (13 loc) • 364 B
TypeScript
/**
* @internal
* This type is used for identifying objects that implement the new function
* in their prototype. This is useful to identify constructable objects
*/
export type Constructable<T = {}> = {
new (...args: any): T;
};
/**
* @internal
* It is just an array of type Constructable<T>
*/
export type Constructables<T = {}> = Constructable<T>[];