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 c0e6c8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/structures/auth/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

import { createClient } from 'matrix-js-sdk/src/matrix';
import React, { ReactNode } from 'react';
import React, { ChangeEvent, FormEvent, ReactNode } from 'react';
import { MatrixClient } from "matrix-js-sdk/src/client";
import classNames from "classnames";
import { logger } from "matrix-js-sdk/src/logger";
Expand Down 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 c0e6c8a

Please sign in to comment.