Conform more of the codebase to strictNullChecks (#10358

* Conform more of the codebase to `strictNullChecks`

* Fix types

* Iterate

* Iterate
This commit is contained in:
Michael Telatynski
2023-03-13 15:07:20 +00:00
committed by GitHub
parent 41d88ad6ae
commit 503df62191
76 changed files with 323 additions and 327 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ export default class SettingsStore {
* check at.
* @return {boolean} True if the user may set the setting, false otherwise.
*/
public static canSetValue(settingName: string, roomId: string, level: SettingLevel): boolean {
public static canSetValue(settingName: string, roomId: string | null, level: SettingLevel): boolean {
// Verify that the setting is actually a setting
if (!SETTINGS[settingName]) {
throw new Error("Setting '" + settingName + "' does not appear to be a setting.");