Conform more code to strictNullChecks
(#10374)
* Apply `strictNullChecks` to `src/components/views/room_settings/*` * Restore tsconfig.json * Conform more code to `strictNullChecks` * Iterate * Update matrix-widget-api * Conform more code to `strictNullChecks`
This commit is contained in:
parent
9c816bb720
commit
1c9ea423c9
44 changed files with 223 additions and 179 deletions
|
@ -44,7 +44,7 @@ const showStopBroadcastingDialog = async (): Promise<boolean> => {
|
|||
button: _t("Yes, stop broadcast"),
|
||||
});
|
||||
const [confirmed] = await finished;
|
||||
return confirmed;
|
||||
return !!confirmed;
|
||||
};
|
||||
|
||||
export const useVoiceBroadcastRecording = (
|
||||
|
@ -54,7 +54,7 @@ export const useVoiceBroadcastRecording = (
|
|||
timeLeft: number;
|
||||
recordingState: VoiceBroadcastRecordingState;
|
||||
room: Room;
|
||||
sender: RoomMember;
|
||||
sender: RoomMember | null;
|
||||
stopRecording(): void;
|
||||
toggleRecording(): void;
|
||||
} => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue