UNPKG

ng-apexcharts

Version:
14 lines (13 loc) 1.21 kB
import { Rule, SchematicContext, Tree } from "@angular-devkit/schematics"; import { ProjectDefinition, WorkspaceDefinition } from "@schematics/angular/utility/workspace"; export declare function readJsonInTree<T = unknown>(host: Tree, path: string): T; export declare function updateJsonInTree<T = unknown, O = T>(path: string, callback: (json: T, context: SchematicContext) => O): Rule; export declare function getProjectFromWorkspace(workspace: WorkspaceDefinition, projectName: string | undefined): ProjectDefinition; export declare function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree; export declare function getProjectTargetOptions(project: ProjectDefinition, buildTarget: string): Record<string, import("@angular-devkit/core").JsonValue | undefined> | undefined; export declare function getProjectMainFile(project: ProjectDefinition): string; /** * Whether the Angular module in the given path imports the specified module class name. */ export declare function hasNgModuleImport(tree: Tree, modulePath: string, className: string): boolean; export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: ProjectDefinition): void;