Fix TSC errors (I have no idea why do they appear)

This commit is contained in:
ErickSkrauch 2024-12-23 15:43:48 +01:00
parent 74da2b9984
commit f2036012d3
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
5 changed files with 6 additions and 9 deletions

View File

@ -139,7 +139,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
onFormSubmit: () => void;
} | null = null;
timerIds: Array<number> = []; // this is a list of a probably running timeouts to clean on unmount
timerIds: Array<ReturnType<typeof setTimeout>> = []; // this is a list of a probably running timeouts to clean on unmount
componentDidUpdate(prevProps: Props) {
const nextPanel: PanelId = this.props.Body && (this.props.Body.type as any).panelId;
@ -160,8 +160,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
if (forceHeight) {
this.timerIds.push(
// https://stackoverflow.com/a/51040768/5184751
window.setTimeout(() => {
setTimeout(() => {
this.setState({ forceHeight: 0 });
}, 100),
);

View File

@ -22,7 +22,7 @@ const DeviceCode: FC<RouteComponentProps> = (props) => {
Body={<DeviceCodeBody {...props} />}
Footer={
<Button type="submit">
<Message id="continue" defaultMessage="Cotinute" />
<Message id="continue" defaultMessage="Continue" />
</Button>
}
/>

View File

@ -39,11 +39,10 @@ export default class Dropdown extends FormInputComponent<Props, State> {
};
render() {
const { color, block, items, ...restProps } = this.props;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { color, block, items, label: unusedLabel, ...restProps } = this.props;
const { isActive } = this.state;
delete restProps.label;
const activeItem = this.getActiveItem();
const label = React.isValidElement(activeItem.label) ? activeItem.label : this.formatMessage(activeItem.label);

View File

@ -32,7 +32,7 @@ Promise.all([stat(`${__dirname}/../../yarn.lock`), stat(`${__dirname}/../../dll/
console.log('Rebuilding dlls...');
return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
compiler.run((err, stats) => {
if (err) {
return reject(err);

View File

@ -9,7 +9,6 @@
"esModuleInterop": true, // allow importing commonjs exports as default in es imports
"moduleResolution": "node",
"noEmit": true,
"checkJs": true,
"allowJs": true,
"skipLibCheck": true,
"strictNullChecks": true,