angular-estree-parser
Version:
A parser that converts Angular source code into an ESTree-compatible form
7 lines (6 loc) • 464 B
TypeScript
import type { AstParseResult, MicroSyntaxParseResult } from './angular-parser.js';
declare function transformAstResult({ result: { ast }, text, comments, }: AstParseResult): import("./types.js").NGNode & {
comments: import("./types.js").CommentLine[];
};
declare function transformMicrosyntaxResult({ result: { templateBindings }, text, }: MicroSyntaxParseResult): import("./types.js").NGMicrosyntax;
export { transformAstResult, transformMicrosyntaxResult };