UNPKG

605 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <amd-module name="@angular/core/schematics/utils/parse_html" />
9import type { TmplAstNode } from '@angular/compiler';
10/**
11 * Parses the given HTML content using the Angular compiler. In case the parsing
12 * fails, null is being returned.
13 */
14export declare function parseHtmlGracefully(htmlContent: string, filePath: string, compilerModule: typeof import('@angular/compiler')): TmplAstNode[] | null;