diff --git a/src/client.ts b/src/client.ts index a0b8cb9e2..9070c8505 100644 --- a/src/client.ts +++ b/src/client.ts @@ -7637,7 +7637,7 @@ export class MatrixClient extends EventEmitter { */ public sendToDevice( eventType: string, - contentMap: { [userId: string]: { [deviceId: string]: Record; } }, + contentMap: { [userId: string]: { [deviceId: string]: Record } }, txnId?: string, ): Promise<{}> { const path = utils.encodeUri("/sendToDevice/$eventType/$txnId", { diff --git a/src/crypto/backup.ts b/src/crypto/backup.ts index 3a8422a74..533391831 100644 --- a/src/crypto/backup.ts +++ b/src/crypto/backup.ts @@ -36,16 +36,16 @@ const KEY_BACKUP_KEYS_PER_REQUEST = 200; type AuthData = IKeyBackupInfo["auth_data"]; type SigInfo = { - deviceId: string, - valid?: boolean | null, // true: valid, false: invalid, null: cannot attempt validation - device?: DeviceInfo | null, - crossSigningId?: boolean, - deviceTrust?: DeviceTrustLevel, + deviceId: string; + valid?: boolean | null; // true: valid, false: invalid, null: cannot attempt validation + device?: DeviceInfo | null; + crossSigningId?: boolean; + deviceTrust?: DeviceTrustLevel; }; export type TrustInfo = { - usable: boolean, // is the backup trusted, true iff there is a sig that is valid & from a trusted device - sigs: SigInfo[], + usable: boolean; // is the backup trusted, true iff there is a sig that is valid & from a trusted device + sigs: SigInfo[]; }; export interface IKeyBackupCheck { diff --git a/src/crypto/index.ts b/src/crypto/index.ts index 070f8f5d9..140e32bd9 100644 --- a/src/crypto/index.ts +++ b/src/crypto/index.ts @@ -114,7 +114,7 @@ interface IRoomKey { export interface IRoomKeyRequestBody extends IRoomKey { session_id: string; - sender_key: string + sender_key: string; } export interface IMegolmSessionData { @@ -166,7 +166,7 @@ export interface IRoomKeyRequestRecipient { interface ISignableObject { signatures?: object; - unsigned?: object + unsigned?: object; } export interface IEventDecryptionResult { diff --git a/src/crypto/key_passphrase.ts b/src/crypto/key_passphrase.ts index 3631fe30f..ca11e7d2f 100644 --- a/src/crypto/key_passphrase.ts +++ b/src/crypto/key_passphrase.ts @@ -31,7 +31,7 @@ interface IAuthData { interface IKey { key: Uint8Array; salt: string; - iterations: number + iterations: number; } export async function keyFromAuthData(authData: IAuthData, password: string): Promise { diff --git a/src/models/event.ts b/src/models/event.ts index 490988787..755438548 100644 --- a/src/models/event.ts +++ b/src/models/event.ts @@ -120,9 +120,9 @@ interface IEventRelation { interface IDecryptionResult { clearEvent: { room_id?: string; - type: string, - content: IContent, - unsigned?: IUnsigned, + type: string; + content: IContent; + unsigned?: IUnsigned; }; forwardingCurve25519KeyChain?: string[]; senderCurve25519Key?: string; diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 18a9542a3..ed1af7b90 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -56,22 +56,22 @@ import { CallFeed } from './callFeed'; */ interface CallOpts { - roomId?: string, - client?: any, // Fix when client is TSified - forceTURN?: boolean, - turnServers?: Array, + roomId?: string; + client?: any; // Fix when client is TSified + forceTURN?: boolean; + turnServers?: Array; } interface TurnServer { - urls: Array, - username?: string, - password?: string, - ttl?: number, + urls: Array; + username?: string; + password?: string; + ttl?: number; } interface AssertedIdentity { - id: string, - displayName: string, + id: string; + displayName: string; } export enum CallState {