html-head-element.d.ts 679 B

12345678910111213
  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. import { Tree } from '@angular-devkit/schematics';
  9. import { DefaultTreeElement } from 'parse5';
  10. /** Appends the given element HTML fragment to the `<head>` element of the specified HTML file. */
  11. export declare function appendHtmlElementToHead(host: Tree, htmlFilePath: string, elementHtml: string): void;
  12. /** Parses the given HTML file and returns the head element if available. */
  13. export declare function getHtmlHeadTagElement(htmlContent: string): DefaultTreeElement | null;