UNPKG

trusktr-dummy-test-pkg

Version:

JavaScript/TypeScript class inheritance tools.

9 lines (8 loc) 269 B
import { Constructor } from './utils.js'; export { newless as native }; export default newless; declare type FuncLikeCtor<T, S = {}> = { (): T; new (): T; } & S; declare function newless<T extends Constructor>(constructor: T): FuncLikeCtor<InstanceType<T>, T>;