Conform more of the codebase to strictNullChecks (#10518
* Conform more of the codebase to `strictNullChecks` * Iterate * Fix tests
This commit is contained in:
committed by
GitHub
parent
e9cc88b872
commit
55d3548330
@@ -30,7 +30,7 @@ export abstract class AsyncStoreWithClient<T extends Object> extends AsyncStore<
|
||||
// Create an anonymous class to avoid code duplication
|
||||
const asyncStore = this; // eslint-disable-line @typescript-eslint/no-this-alias
|
||||
this.readyStore = new (class extends ReadyWatchingStore {
|
||||
public get mxClient(): MatrixClient {
|
||||
public get mxClient(): MatrixClient | null {
|
||||
return this.matrixClient;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export abstract class AsyncStoreWithClient<T extends Object> extends AsyncStore<
|
||||
await this.readyStore.start();
|
||||
}
|
||||
|
||||
public get matrixClient(): MatrixClient {
|
||||
public get matrixClient(): MatrixClient | null {
|
||||
return this.readyStore.mxClient;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user