(and using the correct MouseEvent in getMousePosition)
A lot of or errors related to strict nulls. Also some arguments that were too general, where the functions don't behave as expected with some of the possible inputs. And other various errors.
types