mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-22 10:58:40 +00:00
Convert ParseNode to struct (#1534)
* Define the nested version of ParseNodes structs explicitly. Passes test:jest, but fails test:flow. * Fix additional type errors reported by flow. * Migrate rebased code from master. * Rename ParseNode.js to parseNode.js. * Update defineEnvironment output type to fix the flow errors in environment/array.js.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// @flow
|
||||
import {checkNodeType} from "./ParseNode";
|
||||
import {checkNodeType} from "./parseNode";
|
||||
|
||||
import type Parser from "./Parser";
|
||||
import type ParseNode, {AnyParseNode, NodeType} from "./ParseNode";
|
||||
import type {ParseNode, AnyParseNode, NodeType} from "./parseNode";
|
||||
import type Options from "./Options";
|
||||
import type {ArgType, BreakToken, Mode} from "./types";
|
||||
import type {HtmlDomNode} from "./domTree";
|
||||
|
Reference in New Issue
Block a user