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

Commit c0e6c8a

Browse files
committed
proper event annotation
1 parent 2c9712b commit c0e6c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/auth/Registration.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import { createClient } from 'matrix-js-sdk/src/matrix';
18-
import React, { ReactNode } from 'react';
18+
import React, { ChangeEvent, FormEvent, ReactNode } from 'react';
1919
import { MatrixClient } from "matrix-js-sdk/src/client";
2020
import classNames from "classnames";
2121
import { logger } from "matrix-js-sdk/src/logger";
@@ -147,7 +147,7 @@ export default class Registration extends React.Component<IProps, IState> {
147147
window.removeEventListener("beforeunload", this.unloadCallback);
148148
}
149149

150-
private unloadCallback = (event) => {
150+
private unloadCallback = (event: BeforeUnloadEvent) => {
151151
event.preventDefault();
152152
event.returnValue = "";
153153
return "";

0 commit comments

Comments
 (0)