Add type to container

This commit is contained in:
RMidhunSuresh 2021-11-18 12:43:31 +05:30
parent e6e20044c8
commit 998ad06cd7

View file

@ -127,8 +127,9 @@ function adaptUIOnVisualViewportResize(container) {
export class Platform { export class Platform {
private readonly _config: IPlatformConfig; private readonly _config: IPlatformConfig;
private readonly _container: HTMLElement;
constructor(container, config: IPlatformConfig, cryptoExtras = null, options = null) { constructor(container: HTMLElement, config: IPlatformConfig, cryptoExtras = null, options = null) {
this._config = config; this._config = config;
this._container = container; this._container = container;
this.settingsStorage = new SettingsStorage("hydrogen_setting_v1_"); this.settingsStorage = new SettingsStorage("hydrogen_setting_v1_");