mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
Make a few fields readonly
As they're only set in the constructor.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user