UNPKG

@rxap/schematics-ts-morph

Version:

This package provides utilities for manipulating TypeScript code using ts-morph, particularly for Angular and NestJS projects. It offers functions to add, coerce, and modify code elements like classes, methods, decorators, and imports. The package also in

16 lines 649 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HasDialogComponent = HasDialogComponent; const schematics_utilities_1 = require("@rxap/schematics-utilities"); const has_component_1 = require("./has-component"); function HasDialogComponent(host, options) { let { name, project, feature, directory, } = options; name !== null && name !== void 0 ? name : (name = (0, schematics_utilities_1.CoerceSuffix)(name, '-dialog')); return (0, has_component_1.HasComponent)(host, { project, feature, name: name, directory, }); } //# sourceMappingURL=has-dialog-component.js.map