Remove keyVals ParseNode type (#2067)

* Remove keyVals ParseNode type

* Fix render-a11y-string-spec.js
This commit is contained in:
Ron Kok
2019-08-03 14:20:47 -07:00
committed by Erik Demaine
parent 151376e8aa
commit 3b80e0123b
2 changed files with 0 additions and 10 deletions

View File

@@ -555,10 +555,6 @@ const handleObject = (
throw new Error("KaTeX-a11y: array not implemented yet");
}
case "keyVals": {
throw new Error("KaTeX-a11y: keyVals not implemented yet");
}
case "raw": {
throw new Error("KaTeX-a11y: raw not implemented yet");
}

View File

@@ -53,12 +53,6 @@ type ParseNodeTypes = {
loc?: ?SourceLocation,
color: string,
|},
"keyVals": {|
type: "keyVals",
mode: Mode,
loc?: ?SourceLocation,
keyVals: string,
|},
// To avoid requiring run-time type assertions, this more carefully captures
// the requirements on the fields per the op.js htmlBuilder logic:
// - `body` and `value` are NEVER set simultanouesly.