Fix various type definitions

This commit is contained in:
Travis Ralston 2020-07-30 08:49:42 -06:00
parent 4cf6b7174b
commit 648c3c7796
6 changed files with 9 additions and 6 deletions

View file

@ -27,7 +27,7 @@ export default class DefaultSettingsHandler extends SettingsHandler {
* @param {object} defaults The default setting values, keyed by setting name.
* @param {object} invertedDefaults The default inverted setting values, keyed by setting name.
*/
constructor(private defaults: any, private invertedDefaults: any) { // TODO: [TS] Appropriate types
constructor(private defaults: Record<string, any>, private invertedDefaults: Record<string, any>) {
super();
}

View file

@ -60,7 +60,7 @@ export default class LocalEchoWrapper extends SettingsHandler {
});
}
public canSetValue(settingName, roomId): boolean {
public canSetValue(settingName: string, roomId: string): boolean {
return this.handler.canSetValue(settingName, roomId);
}