Make a few fields readonly

As they're only set in the constructor.
pull/21833/head
Jason Robinson 2020-09-08 13:00:00 +03:00
parent c19336591e
commit 3af0d33e3b
1 changed files with 2 additions and 2 deletions

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;