Skip to content

Commit 1af8547

Browse files
committed
style: 💄 superfluous intersecetion, cleanup respones types
1 parent 9109151 commit 1af8547

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎lib/types/request.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export type MergeType<T, U> = {
307307
[K in keyof T]: K extends keyof U
308308
? U[K]
309309
: T[K];
310-
} & U;
310+
};
311311

312312
export type MergeRefs<T extends ReqRef> = MergeType<ReqRefDefaults, T>;
313313

‎lib/types/response.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
UserCredentials,
77
AppCredentials,
88
AuthArtifacts,
9-
MergeType,
109
AuthCredentials,
1110
ReqRef,
1211
ReqRefDefaults,
@@ -391,7 +390,7 @@ export interface AuthenticationData<
391390
CredentialsExtra = Record<string, unknown>,
392391
ArtifactsExtra = AuthArtifacts
393392
> {
394-
credentials: MergeType<CredentialsExtra, AuthCredentials<AuthUser, AuthApp>>;
393+
credentials: AuthCredentials<AuthUser, AuthApp> & CredentialsExtra;
395394
artifacts?: ArtifactsExtra | undefined;
396395
}
397396

0 commit comments

Comments
 (0)