I am interested in manually triggering a MouseEvent in typescript, but I have discovered that the initEvent method is deprecated.
var clickEvent =document.createEvent('MouseEvent');
clickEvent.initEvent('mouseup',true,true);
https://i.sstatic.net/vSGbE.png
Are there any other methods to accomplish this?