UNPKG

@rustable/type

Version:

A TypeScript implementation of Rust-like type system with generic support and runtime type information.

8 lines (7 loc) 126 B
/** * Generic constructor type. */ export interface Constructor<T = any> { new (...args: any[]): T; prototype: T; }