@wocker/core
Version:
Core of the Wocker
21 lines (20 loc) • 421 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Config = void 0;
/**
* @deprecated
*/
/* istanbul ignore next */
class Config {
constructor(data) {
this.name = data.name;
}
toObject() {
return Object.keys(this)
.reduce((res, key) => {
res[key] = this[key];
return res;
}, {});
}
}
exports.Config = Config;