From b328c54da8ef99bbf88a2bee0f53aa9393a50930 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 1 Dec 2021 11:21:58 +0530 Subject: [PATCH] Change type from Ctor to Options --- src/matrix/net/HomeServerApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/net/HomeServerApi.ts b/src/matrix/net/HomeServerApi.ts index a94c01da..1de5a4dc 100644 --- a/src/matrix/net/HomeServerApi.ts +++ b/src/matrix/net/HomeServerApi.ts @@ -41,7 +41,7 @@ export class HomeServerApi { private readonly _requestFn: RequestFunction; private readonly _reconnector: Reconnector; - constructor({homeserver, accessToken, request, reconnector}: Ctor) { + constructor({homeserver, accessToken, request, reconnector}: Options) { // store these both in a closure somehow so it's harder to get at in case of XSS? // one could change the homeserver as well so the token gets sent there, so both must be protected from read/write this._homeserver = homeserver;