1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-05 00:42:10 +03:00

Apply lint rule @typescript-eslint/no-empty-object-type (#4679)

This commit is contained in:
Michael Telatynski
2025-02-04 13:41:32 +00:00
committed by GitHub
parent 72519a0eb4
commit ea34cce00a
20 changed files with 108 additions and 84 deletions

View File

@@ -134,6 +134,7 @@ export type AuthDict =
| RecaptchaDict
| EmailIdentityDict
| { type: Exclude<string, AuthType>; [key: string]: any }
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
| {};
export class NoAuthFlowFoundError extends Error {
@@ -421,10 +422,12 @@ export class InteractiveAuth<T> {
// use the sessionid from the last request, if one is present.
let auth: AuthDict;
if ((this.data as IAuthData)?.session) {
auth = {
session: (this.data as IAuthData).session,
};
Object.assign(auth, authData);
auth = Object.assign(
{
session: (this.data as IAuthData).session,
},
authData,
);
} else {
auth = authData;
}