mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 14:08:42 +00:00
Update flow version and address type errors. (#1369)
This commit is contained in:
@@ -110,6 +110,10 @@ export default function defineEnvironment<NODETYPE: NodeType>({
|
||||
handler,
|
||||
};
|
||||
for (let i = 0; i < names.length; ++i) {
|
||||
// TODO: The value type of _environments should be a type union of all
|
||||
// possible `EnvSpec<>` possibilities instead of `EnvSpec<*>`, which is
|
||||
// an existential type.
|
||||
// $FlowFixMe
|
||||
_environments[names[i]] = data;
|
||||
}
|
||||
if (htmlBuilder) {
|
||||
|
Reference in New Issue
Block a user