UNPKG

easy-constructor

Version:

JavaScript class constructors without the boilerplate

1 lines 328 B
{"version":3,"sources":["../../src/types/ConstructorType.ts"],"sourcesContent":["/**\n * Extracts the non-method properties of a class\n */\nexport type ConstructorType<T> = {\n [K in keyof T as T[K] extends (...args: unknown[]) => unknown\n ? never\n : K]: T[K];\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}