buildDocs/mixin.js
import { assign } from 'lodash';
export function Mixin(...srcs) {
return (target) => {
assign(target.prototype, ...srcs);
return target;
};
}
export { Mixin as mixin };
export default Mixin;
import { assign } from 'lodash';
export function Mixin(...srcs) {
return (target) => {
assign(target.prototype, ...srcs);
return target;
};
}
export { Mixin as mixin };
export default Mixin;