UNPKG

ngx-pendo

Version:

A simple wrapper to load Pendo by angular way

19 lines (18 loc) 1.13 kB
import { Tree } from '@angular-devkit/schematics'; import { Schema as ComponentOptions } from '@schematics/angular/component/schema'; import { ProjectDefinition } from '@schematics/angular/utility/workspace'; import * as ts from 'typescript'; /** Reads file given path and returns TypeScript source file. */ export declare function parseSourceFile(host: Tree, path: string): ts.SourceFile; /** Import and add module to root app module. */ export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: ProjectDefinition): void; /** * Import and add module to specific module path. * @param host the tree we are updating * @param modulePath src location of the module to import * @param moduleName name of module to import * @param src src location to import */ export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void; /** Wraps the internal find module from options with undefined path handling */ export declare function findModuleFromOptions(host: Tree, options: ComponentOptions): Promise<string | undefined>;