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

@ -53,10 +53,10 @@ interface IState {
}
export default class DateSeparator extends React.Component<IProps, IState> {
private settingWatcherRef = null;
private settingWatcherRef?: string;
public constructor(props, context) {
super(props, context);
public constructor(props: IProps) {
super(props);
this.state = {
jumpToDateEnabled: SettingsStore.getValue("feature_jump_to_date"),
};
@ -116,7 +116,7 @@ export default class DateSeparator extends React.Component<IProps, IState> {
}
}
private pickDate = async (inputTimestamp): Promise<void> => {
private pickDate = async (inputTimestamp: number | string | Date): Promise<void> => {
const unixTimestamp = new Date(inputTimestamp).getTime();
const cli = MatrixClientPeg.get();
@ -175,7 +175,7 @@ export default class DateSeparator extends React.Component<IProps, IState> {
this.closeMenu();
};
private onDatePicked = (dateString): void => {
private onDatePicked = (dateString: string): void => {
this.pickDate(dateString);
this.closeMenu();
};