UNPKG

929 BTypeScriptView Raw
1import { BuildContext, ChangedFile } from './util/interfaces';
2export declare function templateUpdate(changedFiles: ChangedFile[], context: BuildContext): Promise<void>;
3export declare function inlineTemplate(sourceText: string, sourcePath: string): string;
4export declare function updateTemplate(componentDir: string, match: TemplateUrlMatch): string;
5export declare function replaceTemplateUrl(match: TemplateUrlMatch, htmlFilePath: string, templateContent: string): string;
6export declare function replaceExistingJsTemplate(existingSourceText: string, newTemplateContent: string, htmlFilePath: string): string;
7export declare function getTemplateFormat(htmlFilePath: string, content: string): string;
8export declare function getTemplateMatch(str: string): TemplateUrlMatch;
9export interface TemplateUrlMatch {
10 start: number;
11 end: number;
12 component: string;
13 templateProperty: string;
14 templateUrl: string;
15}