Improve quality of Typescript types (#10742)
This commit is contained in:
@@ -35,7 +35,7 @@ export class LocalRoom extends Room {
|
||||
/** Whether the actual room should be encrypted. */
|
||||
public encrypted = false;
|
||||
/** If the actual room has been created, this holds its ID. */
|
||||
public actualRoomId: string;
|
||||
public actualRoomId?: string;
|
||||
/** DM chat partner */
|
||||
public targets: Member[] = [];
|
||||
/** Callbacks that should be invoked after the actual room has been created. */
|
||||
|
||||
@@ -20,7 +20,7 @@ import { IEncryptedFile } from "../customisations/models/IMediaEventContent";
|
||||
|
||||
export class RoomUpload {
|
||||
public readonly abortController = new AbortController();
|
||||
public promise: Promise<{ url?: string; file?: IEncryptedFile }>;
|
||||
public promise?: Promise<{ url?: string; file?: IEncryptedFile }>;
|
||||
private uploaded = 0;
|
||||
|
||||
public constructor(
|
||||
|
||||
Reference in New Issue
Block a user