ref(TS) Improve TS (#12656)

This commit is contained in:
Robert Pintilii
2023-02-02 13:12:31 +02:00
committed by GitHub
parent ab262ec8b1
commit fbc0a502e7
60 changed files with 232 additions and 205 deletions

View File

@@ -38,6 +38,7 @@ import ModeratorTab from './ModeratorTab';
import MoreTab from './MoreTab';
import ProfileTab from './ProfileTab';
import SoundsTab from './SoundsTab';
/* eslint-enable lines-around-comment */
/**
* The type of the React {@code Component} props of
@@ -247,10 +248,12 @@ class SettingsDialog extends Component<IProps> {
return {
...tab,
onMount: tab.onMount
// @ts-ignore
? (...args: any) => dispatch(tab.onMount(...args))
: undefined,
submit: (...args: any) => tab.submit
// @ts-ignore
&& dispatch(tab.submit(...args))
};