ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
28 lines (26 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const manipulation_1 = require("./../../manipulation");
const callBaseFill_1 = require("./../callBaseFill");
const common_1 = require("./../common");
const base_1 = require("./../base");
// todo: type node should not be able to return undefined
exports.TypeAliasDeclarationBase = base_1.TypeParameteredNode(base_1.TypedNode(base_1.DocumentationableNode(base_1.AmbientableNode(base_1.ExportableNode(base_1.ModifierableNode(base_1.NamedNode(common_1.Node)))))));
class TypeAliasDeclaration extends exports.TypeAliasDeclarationBase {
/**
* Fills the node from a structure.
* @param structure - Structure to fill.
*/
fill(structure) {
callBaseFill_1.callBaseFill(exports.TypeAliasDeclarationBase.prototype, this, structure);
return this;
}
/**
* Removes this type alias declaration.
*/
remove() {
manipulation_1.removeStatementedNodeChild(this);
}
}
exports.TypeAliasDeclaration = TypeAliasDeclaration;
//# sourceMappingURL=TypeAliasDeclaration.js.map