Skip to content

Commit 78fb7ba

Browse files
committed
Mark old classes as deprecated
1 parent 9c5e1d2 commit 78fb7ba

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/crypto/verification/Base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export type VerificationEventHandlerMap = {
5757
[VerificationEvent.Cancel]: (e: Error | MatrixEvent) => void;
5858
};
5959

60+
/** @deprecated Avoid referencing this class directly; instead use {@link Crypto.Verifier}. */
6061
// The type parameters of VerificationBase are no longer used, but we need some placeholders to maintain
6162
// backwards compatibility with applications that reference the class.
6263
export class VerificationBase<

src/crypto/verification/QRCode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export type QrCodeEvent = VerifierEvent;
3636
/** @deprecated use VerifierEvent */
3737
export const QrCodeEvent = VerifierEvent;
3838

39+
/** @deprecated Avoid referencing this class directly; instead use {@link Crypto.Verifier}. */
3940
export class ReciprocateQRCode extends Base {
4041
public reciprocateQREvent?: ShowQrCodeCallbacks;
4142

src/crypto/verification/SAS.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export type SasEvent = VerifierEvent;
219219
/** @deprecated use VerifierEvent */
220220
export const SasEvent = VerifierEvent;
221221

222+
/** @deprecated Avoid referencing this class directly; instead use {@link Crypto.Verifier}. */
222223
export class SAS extends Base {
223224
private waitingForAccept?: boolean;
224225
public ourSASPubKey?: string;

0 commit comments

Comments
 (0)