ts-bakery
Version:
Baked dependency injection for Typescript.
28 lines • 826 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TsNode_1 = require("./TsNode");
class TsClassDefinition extends TsNode_1.default {
constructor() {
super(...arguments);
this.name = null;
this.decorators = [];
this.heritageClauses = [];
this.getters = [];
this.setters = [];
this.properties = [];
this.methods = [];
this.isDefault = false;
this.isExported = false;
this.isAbstract = false;
}
getDecorator(decoratorName) {
for (const decorator of this.decorators) {
if (decorator.name == decoratorName) {
return decorator;
}
}
return null;
}
}
exports.default = TsClassDefinition;
//# sourceMappingURL=TsClassDefinition.js.map