Enable @typescript-eslint/explicit-function-return-type in /src (#9788)

* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier

* Enable `@typescript-eslint/explicit-function-return-type` in /src

* Fix types

* tsc strict fixes

* Delint

* Fix test

* Fix bad merge
This commit is contained in:
Michael Telatynski 2023-01-12 13:25:14 +00:00 committed by GitHub
parent 7a36ba0fde
commit 030b7e90bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
683 changed files with 3459 additions and 3013 deletions

View file

@ -47,17 +47,17 @@ export default class LegacyCallViewForRoom extends React.Component<IProps, IStat
};
}
public componentDidMount() {
public componentDidMount(): void {
LegacyCallHandler.instance.addListener(LegacyCallHandlerEvent.CallState, this.updateCall);
LegacyCallHandler.instance.addListener(LegacyCallHandlerEvent.CallChangeRoom, this.updateCall);
}
public componentWillUnmount() {
public componentWillUnmount(): void {
LegacyCallHandler.instance.removeListener(LegacyCallHandlerEvent.CallState, this.updateCall);
LegacyCallHandler.instance.removeListener(LegacyCallHandlerEvent.CallChangeRoom, this.updateCall);
}
private updateCall = () => {
private updateCall = (): void => {
const newCall = this.getCall();
if (newCall !== this.state.call) {
this.setState({ call: newCall });
@ -71,19 +71,19 @@ export default class LegacyCallViewForRoom extends React.Component<IProps, IStat
return call;
}
private onResizeStart = () => {
private onResizeStart = (): void => {
this.props.resizeNotifier.startResizing();
};
private onResize = () => {
private onResize = (): void => {
this.props.resizeNotifier.notifyTimelineHeightChanged();
};
private onResizeStop = () => {
private onResizeStop = (): void => {
this.props.resizeNotifier.stopResizing();
};
public render() {
public render(): JSX.Element {
if (!this.state.call) return null;
return (