honestjs
Version:
HonestJS - a modern web framework built on top of Hono
13 lines (12 loc) • 384 B
TypeScript
/**
* Represents a class constructor type
* Used throughout the framework for type-safe dependency injection and component registration
*
* @template T - The type of instance that the constructor creates
* @example
* ```ts
* class MyService {}
* const myConstructor: Constructor<MyService> = MyService;
* ```
*/
export type Constructor<T = any> = new (...args: any[]) => T;