"fix" some typescript errors

This commit is contained in:
Joeri Exelmans 2025-10-14 13:42:45 +02:00
parent b14b9e205c
commit a73d51a31a
2 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
import { Dispatch, SetStateAction } from "react";
import { Statechart, stateDescription } from "../statecharts/abstract_syntax";
import { BigStep, Environment, Mode } from "../statecharts/runtime_types";
import { BigStep, Environment, Mode, RaisedEvent } from "../statecharts/runtime_types";
import { formatTime } from "./util";
import { TimeMode } from "../statecharts/time";
@ -24,7 +24,7 @@ export function RTHistory({rt, rtIdx, ast, setRTIdx, setTime}: RTHistoryProps) {
<ShowMode mode={rt.mode} statechart={ast}/>
<ShowEnvironment environment={rt.environment}/>
{rt.outputEvents.length>0 && <div>
{rt.outputEvents.map((e:string) => '^'+e).join(', ')}
{rt.outputEvents.map((e:RaisedEvent) => '^'+e.name).join(', ')}
</div>}
</div></>);
}