UNPKG

604 BTypeScriptView Raw
1/// <reference types="cheerio" />
2import { Tree } from '@angular-devkit/schematics/src/tree/interface';
3import { Observable } from 'rxjs';
4import { TransformCallback } from './rx.tree';
5/**
6 * Reads an HMTL from the tree and then transforms it using the given function. If the result
7 * is null or undefined, the file will be deleted, else replaced or created.
8 *
9 * @param aName name of the file
10 * @param aOp the operator
11 * @param aTree the tree to work in
12 */
13export declare function rxTransformHtmlFile(aName: string, aOp: TransformCallback<CheerioStatic>, aTree: Tree): Observable<string>;