From b29c4171ee7219eb92c9f64234770533bf1eef61 Mon Sep 17 00:00:00 2001 From: yaya-usman Date: Thu, 21 Apr 2022 09:38:14 +0300 Subject: [PATCH] proper event annotation --- src/components/structures/auth/Registration.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/auth/Registration.tsx b/src/components/structures/auth/Registration.tsx index 7777d1a451d..0e620e8d046 100644 --- a/src/components/structures/auth/Registration.tsx +++ b/src/components/structures/auth/Registration.tsx @@ -147,7 +147,7 @@ export default class Registration extends React.Component { window.removeEventListener("beforeunload", this.unloadCallback); } - private unloadCallback = (event) => { + private unloadCallback = (event: BeforeUnloadEvent) => { event.preventDefault(); event.returnValue = ""; return "";