UNPKG

is-constructor

Version:

Check if a value is a constructor function

7 lines (6 loc) 249 B
declare function isConstructor<T>(value: any): value is Constructor<any>; export default isConstructor; export type Constructor<T> = new (...args: any[]) => T; declare namespace isConstructor { type Constructor<T> = new (...args: any[]) => T; }