MCPcopy Create free account
hub / github.com/TruthHun/BookStack / assertSymbolNodeType

Function assertSymbolNodeType

static/katex/katex.js:6063–6071  ·  view source on GitHub ↗

* Returns the node more strictly typed iff it is of the given type. Otherwise, * returns null.

(node)

Source from the content-addressed store, hash-verified

6061 */
6062
6063function assertSymbolNodeType(node) {
6064 var typedNode = checkSymbolNodeType(node);
6065
6066 if (!typedNode) {
6067 throw new Error("Expected node of symbol group type, but got " + (node ? "node of type " + node.type : String(node)));
6068 }
6069
6070 return typedNode;
6071}
6072/**
6073 * Returns the node more strictly typed iff it is of the given type. Otherwise,
6074 * returns null.

Callers 1

katex.jsFile · 0.70

Calls 1

checkSymbolNodeTypeFunction · 0.70

Tested by

no test coverage detected