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,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import * as React from "react";
import { createRef } from "react";
import React, { ChangeEvent } from "react";
import { createRef, SyntheticEvent } from "react";
import AccessibleButton, { ButtonEvent } from "../elements/AccessibleButton";
import Field from "../elements/Field";
@ -24,7 +24,7 @@ import DialPadBackspaceButton from "../elements/DialPadBackspaceButton";
import LegacyCallHandler from "../../../LegacyCallHandler";
interface IProps {
onFinished: (boolean) => void;
onFinished: (dialled: boolean) => void;
}
interface IState {
@ -34,7 +34,7 @@ interface IState {
export default class DialpadModal extends React.PureComponent<IProps, IState> {
private numberEntryFieldRef: React.RefObject<Field> = createRef();
public constructor(props) {
public constructor(props: IProps) {
super(props);
this.state = {
value: "",
@ -45,11 +45,11 @@ export default class DialpadModal extends React.PureComponent<IProps, IState> {
this.props.onFinished(false);
};
public onChange = (ev): void => {
public onChange = (ev: ChangeEvent<HTMLInputElement>): void => {
this.setState({ value: ev.target.value });
};
public onFormSubmit = (ev): void => {
public onFormSubmit = (ev: SyntheticEvent): void => {
ev.preventDefault();
this.onDialPress();
};

View file

@ -311,7 +311,7 @@ export default class LegacyCallView extends React.Component<IProps, IState> {
// we register global shortcuts here, they *must not conflict* with local shortcuts elsewhere or both will fire
// Note that this assumes we always have a LegacyCallView on screen at any given time
// LegacyCallHandler would probably be a better place for this
private onNativeKeyDown = (ev): void => {
private onNativeKeyDown = (ev: KeyboardEvent): void => {
let handled = false;
const callAction = getKeyBindingsManager().getCallAction(ev);

View file

@ -171,7 +171,7 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
});
};
private onResize = (e): void => {
private onResize = (e: Event): void => {
if (this.props.onResize && !this.props.feed.isLocal()) {
this.props.onResize(e);
}