UNPKG

2.94 kBTypeScriptView Raw
1import { CallExpression, SourceFile, TransformationContext, TransformerFactory } from 'typescript';
2import { FileCache } from '../util/file-cache';
3import { BuildContext, ChangedFile, DeepLinkConfigEntry, DeepLinkDecoratorAndClass, DeepLinkPathInfo, File } from '../util/interfaces';
4export declare function getDeepLinkData(appNgModuleFilePath: string, fileCache: FileCache, isAot: boolean): Map<string, DeepLinkConfigEntry>;
5export declare function filterTypescriptFilesForDeepLinks(fileCache: FileCache): File[];
6export declare function isDeepLinkingFile(filePath: string): boolean;
7export declare function getNgModulePathFromCorrespondingPage(filePath: string): string;
8export declare function getRelativePathToPageNgModuleFromAppNgModule(pathToAppNgModule: string, pathToPageNgModule: string): string;
9export declare function getNgModuleDataFromPage(appNgModuleFilePath: string, filePath: string, className: string, fileCache: FileCache, isAot: boolean): DeepLinkPathInfo;
10export declare function getDeepLinkDecoratorContentForSourceFile(sourceFile: SourceFile): DeepLinkDecoratorAndClass;
11export declare function hasExistingDeepLinkConfig(appNgModuleFilePath: string, appNgModuleFileContent: string): boolean;
12export declare function convertDeepLinkConfigEntriesToString(entries: Map<string, DeepLinkConfigEntry>): string;
13export declare function convertDeepLinkEntryToJsObjectString(entry: DeepLinkConfigEntry): string;
14export declare function updateAppNgModuleWithDeepLinkConfig(context: BuildContext, deepLinkString: string, changedFiles: ChangedFile[]): void;
15export declare function getUpdatedAppNgModuleContentWithDeepLinkConfig(appNgModuleFilePath: string, appNgModuleFileContent: string, deepLinkStringContent: string): string;
16export declare function getUpdatedAppNgModuleFactoryContentWithDeepLinksConfig(appNgModuleFactoryFileContent: string, deepLinkStringContent: string): string;
17export declare function addDefaultSecondArgumentToAppNgModule(appNgModuleFileContent: string, ionicModuleForRoot: CallExpression): string;
18export declare function addDeepLinkArgumentToAppNgModule(appNgModuleFileContent: string, ionicModuleForRoot: CallExpression, deepLinkString: string): string;
19export declare function generateDefaultDeepLinkNgModuleContent(pageFilePath: string, className: string): string;
20export declare function purgeDeepLinkDecoratorTSTransform(): TransformerFactory<SourceFile>;
21export declare function purgeDeepLinkDecoratorTSTransformImpl(transformContext: TransformationContext): (sourceFile: SourceFile) => SourceFile;
22export declare function purgeDeepLinkDecorator(inputText: string): string;
23export declare function purgeDeepLinkImport(inputText: string): string;
24export declare function getInjectDeepLinkConfigTypescriptTransform(): TransformerFactory<SourceFile>;
25export declare function injectDeepLinkConfigTypescriptTransform(deepLinkString: string, appNgModuleFilePath: string): TransformerFactory<SourceFile>;