Validate inert table-rule trees before they enter snapshots or XML output. A whitelist prevents this persistence seam from becoming arbitrary markup.
Declaration
function validWorkbookTableXmlElement( value: unknown, expectedName: string, budget?: { nodes: number; characters: number; },): booleanParameters
value: unknownrequiredThe rule tree to check, from outside your code.
expectedName: stringrequiredThe element name the root must have, such as autoFilter.
budget?: { nodes: number; characters: number; }optionalNode and text counters shared across several calls; omit for one tree.
Returns
booleantrue when the tree is within the allowed elements, depth and size.