1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Make a few fields readonly

As they're only set in the constructor.
This commit is contained in:
Jason Robinson
2020-09-08 13:00:00 +03:00
parent c19336591e
commit 3af0d33e3b

View File

@@ -81,9 +81,9 @@ export interface OpenIDCredentials {
* the given promise resolves. * the given promise resolves.
*/ */
export class WidgetApi extends EventEmitter { export class WidgetApi extends EventEmitter {
private origin: string; private readonly origin: string;
private inFlightRequests: { [requestId: string]: (reply: FromWidgetRequest) => void } = {}; private inFlightRequests: { [requestId: string]: (reply: FromWidgetRequest) => void } = {};
private readyPromise: Promise<any>; private readonly readyPromise: Promise<any>;
private readyPromiseResolve: () => void; private readyPromiseResolve: () => void;
private openIDCredentialsCallback: () => void; private openIDCredentialsCallback: () => void;
public openIDCredentials: OpenIDCredentials; public openIDCredentials: OpenIDCredentials;