clone-class
Version:
Clone an ES6 Class as Another Class Name for Isolating Class Static Properties.
11 lines • 471 B
TypeScript
import type { Constructor } from './constructor.js';
/**
* Huan(202011)
* Create a `looseInstanceOfClass` to check `FileBox` and `Puppet` instances #2090
* https://github.com/wechaty/wechaty/issues/2090
*
* `instanceof`: checking by constructor name.
*/
declare const looseInstanceOfClass: <C extends Constructor<{}>>(Klass: C) => (target: any) => target is InstanceType<C>;
export { looseInstanceOfClass };
//# sourceMappingURL=loose-instance-of-class.d.ts.map