import { IInstance } from './interfaces'; import { Instance } from './implementation'; export function $super(instance: TInstance, superClass: Function = instance.constructor): IInstance { return new Instance(instance, superClass.prototype); }