Use typescript style that was agreed on earlier

This commit is contained in:
RMidhunSuresh 2022-02-01 19:26:51 +05:30
parent 5de1fc1453
commit 6eba60bd75

View file

@ -18,6 +18,10 @@ export type Auth = {
[key: string]: any;
}
type Params = {
[key: string]: any;
}
import type {HomeServerApi} from "../../net/HomeServerApi";
import type {RegistrationParameters, RegistrationResponse} from "../Registration";
@ -28,7 +32,7 @@ export abstract class BaseRegistrationStage {
protected _nextStage: BaseRegistrationStage;
protected _params?: Record<string, any>
constructor(hsApi: HomeServerApi, registrationData: RegistrationParameters, session: string, params?: Record<string, any>) {
constructor(hsApi: HomeServerApi, registrationData: RegistrationParameters, session: string, params?: Params) {
this._hsApi = hsApi;
this._registrationData = registrationData;
this._session = session;