@avonjs/avonjs
Version:
A fluent Node.js API generator.
19 lines (18 loc) • 542 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Mixins = void 0;
const Mixins = (Parent) => {
// Make sure that `this` in the method refers to the class extending `Parent`
class Test extends Parent {
/**
* Store given model into the storage.
* We explicitly annotate `this` to refer to the instance type of `Test`.
*/
testRefer() {
return Parent;
}
}
return Test;
};
exports.Mixins = Mixins;
exports.default = exports.Mixins;