html-manipulation.d.ts 814 B

123456789101112131415
  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.dev/license
  7. */
  8. import { Tree } from '@angular-devkit/schematics';
  9. import { Element } from './parse5-element';
  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): Element | null;
  14. /** Adds a class to the body of the document. */
  15. export declare function addBodyClass(host: Tree, htmlFilePath: string, className: string): void;