Comply with noImplicitAny (#9940)

* Stash noImplicitAny work

* Stash

* Fix imports

* Iterate

* Fix tests

* Delint

* Fix tests
This commit is contained in:
Michael Telatynski 2023-02-13 11:39:16 +00:00 committed by GitHub
parent ac7f69216e
commit 61a63e47f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
359 changed files with 1621 additions and 1353 deletions

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import React, { ChangeEvent, SyntheticEvent } from "react";
import { logger } from "matrix-js-sdk/src/logger";
import { _t } from "../../../../../languageHandler";
@ -36,7 +36,7 @@ interface IState {
}
export default class MjolnirUserSettingsTab extends React.Component<{}, IState> {
public constructor(props) {
public constructor(props: {}) {
super(props);
this.state = {
@ -46,15 +46,15 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
};
}
private onPersonalRuleChanged = (e): void => {
private onPersonalRuleChanged = (e: ChangeEvent<HTMLInputElement>): void => {
this.setState({ newPersonalRule: e.target.value });
};
private onNewListChanged = (e): void => {
private onNewListChanged = (e: ChangeEvent<HTMLInputElement>): void => {
this.setState({ newList: e.target.value });
};
private onAddPersonalRule = async (e): Promise<void> => {
private onAddPersonalRule = async (e: SyntheticEvent): Promise<void> => {
e.preventDefault();
e.stopPropagation();
@ -80,7 +80,7 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
}
};
private onSubscribeList = async (e): Promise<void> => {
private onSubscribeList = async (e: SyntheticEvent): Promise<void> => {
e.preventDefault();
e.stopPropagation();