UNPKG

ngx-html-bridge

Version:

An Angular Template Parser to convert Angular templates into an array of standard, static HTML strings.

13 lines (12 loc) 761 B
import type { TmplAstSwitchBlock } from "@angular/compiler"; import type { TmplAstBranchNodeTransformer } from "../../types/index.js"; /** * Transforms a TmplAstSwitchBlock node into a 2D array of DOM Nodes. * It processes each case of the switch block and adds an empty array if no default case is present and only one case is defined. * * @param switchBlock The TmplAstSwitchBlock node to transform. * @param tmplAstTemplates A list of all TmplAstTemplate nodes in the parsed template. * @param transformTmplAstNodes The recursive function to transform child AST nodes. * @returns A 2D array of DOM Nodes representing the transformed switch block. */ export declare const transformTmplAstSwitchBlock: TmplAstBranchNodeTransformer<TmplAstSwitchBlock>;