(instance: any)
| 42 | } |
| 43 | |
| 44 | static Constructor(instance: any): instance is Constructor { |
| 45 | return typeof instance === 'function' && !!instance.prototype && !Object.getOwnPropertyNames(instance).includes('arguments') && instance.toString().match(/^function.*\{ \[native code\] \}|^class/g); |
| 46 | } |
| 47 | |
| 48 | static asyncConstructor(instance: any): instance is AsyncConstructor<any> { |
| 49 | return typeof instance === 'function' && !!instance.class && is.Constructor(instance.class); |
no test coverage detected