UNPKG

@flex-development/tutils

Version:
22 lines (18 loc) 486 B
/** * @file Type Definitions - ClassConstructor * @module tutils/types/ClassConstructor */ import type ObjectPlain from './object-plain' /** * [Object class][1] type. * * [1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Classes * * @template T - Object type * @template A - Constructor arguments */ type ClassConstructor< T extends ObjectPlain = ObjectPlain, A extends any[] = any[] > = new (...args: A) => T export { type ClassConstructor as default }