Fix various type definitions
This commit is contained in:
parent
4cf6b7174b
commit
648c3c7796
6 changed files with 9 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue