Make more of the codebase conform to strict types (#10859)

This commit is contained in:
Michael Telatynski
2023-05-12 09:49:37 +01:00
committed by GitHub
parent 6f58dd49e3
commit f758cbd38a
46 changed files with 111 additions and 105 deletions
+5 -1
View File
@@ -142,7 +142,11 @@ export default class AutoRageshakeStore extends AsyncStoreWithClient<IState> {
}
}
private async onSyncStateChange(_state: SyncState, _prevState: SyncState, data?: ISyncStateData): Promise<void> {
private async onSyncStateChange(
_state: SyncState,
_prevState: SyncState | null,
data?: ISyncStateData,
): Promise<void> {
if (!this.state.initialSyncCompleted) {
await this.updateState({ initialSyncCompleted: !!data?.nextSyncToken });
}