Conform more code to strict null checking (#10153)
* Conform more code to strict null checking * Conform more code to strict null checking * Iterate * Iterate
This commit is contained in:
parent
a4ff959aa1
commit
145a5a8a8d
89 changed files with 520 additions and 551 deletions
|
@ -53,7 +53,7 @@ export default abstract class SettingController {
|
|||
* @param {*} newValue The new value for the setting, may be null.
|
||||
* @return {boolean} Whether the settings change should be accepted.
|
||||
*/
|
||||
public async beforeChange(level: SettingLevel, roomId: string, newValue: any): Promise<boolean> {
|
||||
public async beforeChange(level: SettingLevel, roomId: string | null, newValue: any): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ export default abstract class SettingController {
|
|||
* @param {String} roomId The room ID, may be null.
|
||||
* @param {*} newValue The new value for the setting, may be null.
|
||||
*/
|
||||
public onChange(level: SettingLevel, roomId: string, newValue: any): void {
|
||||
public onChange(level: SettingLevel, roomId: string | null, newValue: any): void {
|
||||
// do nothing by default
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue