mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Use typescript style that was agreed on earlier
This commit is contained in:
parent
5de1fc1453
commit
6eba60bd75
@ -18,6 +18,10 @@ export type Auth = {
|
|||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Params = {
|
||||||
|
[key: string]: any;
|
||||||
|
}
|
||||||
|
|
||||||
import type {HomeServerApi} from "../../net/HomeServerApi";
|
import type {HomeServerApi} from "../../net/HomeServerApi";
|
||||||
import type {RegistrationParameters, RegistrationResponse} from "../Registration";
|
import type {RegistrationParameters, RegistrationResponse} from "../Registration";
|
||||||
|
|
||||||
@ -28,7 +32,7 @@ export abstract class BaseRegistrationStage {
|
|||||||
protected _nextStage: BaseRegistrationStage;
|
protected _nextStage: BaseRegistrationStage;
|
||||||
protected _params?: Record<string, any>
|
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._hsApi = hsApi;
|
||||||
this._registrationData = registrationData;
|
this._registrationData = registrationData;
|
||||||
this._session = session;
|
this._session = session;
|
||||||
|
Loading…
Reference in New Issue
Block a user