mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 15:51:06 +00:00
Enable the @typescript-eslint/no-unsafe-argument eslint rule (#1831)
## Description: Enable the `@typescript-eslint/no-unsafe-argument` eslint rule. Fixes #1780 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced
This commit is contained in:
@@ -491,15 +491,15 @@ export class RadialMenu implements Layer {
|
||||
onMouseOut(d, path);
|
||||
});
|
||||
|
||||
path.on("mousemove", function (event) {
|
||||
handleMouseMove(event as MouseEvent);
|
||||
path.on("mousemove", function (event: MouseEvent) {
|
||||
handleMouseMove(event);
|
||||
});
|
||||
|
||||
path.on("click", function (event) {
|
||||
path.on("click", function (event: Event) {
|
||||
onClick(d, event);
|
||||
});
|
||||
|
||||
path.on("touchstart", function (event) {
|
||||
path.on("touchstart", function (event: Event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
onClick(d, event);
|
||||
|
||||
Reference in New Issue
Block a user