"fix" some typescript errors
This commit is contained in:
parent
b14b9e205c
commit
a73d51a31a
2 changed files with 7 additions and 7 deletions
|
|
@ -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></>);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue