diff --git a/src/matrix/registration/stages/BaseRegistrationStage.ts b/src/matrix/registration/stages/BaseRegistrationStage.ts index 4c15bb5e..bea95598 100644 --- a/src/matrix/registration/stages/BaseRegistrationStage.ts +++ b/src/matrix/registration/stages/BaseRegistrationStage.ts @@ -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 - constructor(hsApi: HomeServerApi, registrationData: RegistrationParameters, session: string, params?: Record) { + constructor(hsApi: HomeServerApi, registrationData: RegistrationParameters, session: string, params?: Params) { this._hsApi = hsApi; this._registrationData = registrationData; this._session = session;