Hi
I’m want to get the doneActions array from my table to see how many undo actions are available. I do this:
const hotRef = useRef<HotTable>(null);
<HotTable ref={hotRef} />
// @ts-ignore
hotRef.current.__hotInstance.undoRedo.doneActions
But it is not exposed in the Typescript types… So I have to use ts-ignore to omit the type error.
Is this the best way to get the doneActions? Are the types wrong or intentionally hiding doneActions?
I’m unable to create a codesandbox example, it does not like useRef for some reason…
Thanks!