Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
proper event annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yaya-usman committed Apr 21, 2022
1 parent 2c9712b commit b29c417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/auth/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class Registration extends React.Component<IProps, IState> {
window.removeEventListener("beforeunload", this.unloadCallback);
}

private unloadCallback = (event) => {
private unloadCallback = (event: BeforeUnloadEvent) => {
event.preventDefault();
event.returnValue = "";
return "";
Expand Down

0 comments on commit b29c417

Please sign in to comment.