UNPKG

honestjs

Version:

HonestJS - a modern web framework built on top of Hono

13 lines (12 loc) 384 B
/** * 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;