@rxap/schematics-xml-parser
Version:
This package provides utilities for parsing XML templates within Angular Schematics. It includes functionality to locate templates in a file system, parse them using a specified DOMParser, and register custom elements for parsing. The package also offers
17 lines (16 loc) • 565 B
TypeScript
import { ParsedElement } from '@rxap/xml-parser';
import { SourceFile } from 'ts-morph';
import { ToValueContext } from '@rxap/schematics-ts-morph';
import { TypeElement } from '../type.element';
export interface IMethodElement extends ParsedElement<string> {
mock?: boolean;
}
export declare class MethodElement implements ParsedElement<string>, IMethodElement {
name: string;
from?: string;
mock?: boolean;
parameterType?: TypeElement;
toValue({ sourceFile, project, }: {
sourceFile: SourceFile;
} & ToValueContext): string;
}