UNPKG

mixin-support

Version:

Library for JavaScript mixin support, provides an easy and useful interface for the implementation of this powerful concept.

18 lines (13 loc) 280 B
import { MixinBuilder } from "../src/index.js"; class A extends MixinBuilder.abstract() { prepare() {} } // const a = new A(); // a.prepare(); class B extends A { // prepare() { // console.log("print log B prepare"); // } } const b = new B(); b.prepare();