Skip to content

Commit

Permalink
style: 💄 superfluous intersecetion, cleanup respones types
Browse files Browse the repository at this point in the history
  • Loading branch information
damusix committed Aug 13, 2024
1 parent 9109151 commit 1af8547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/types/request.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export type MergeType<T, U> = {
[K in keyof T]: K extends keyof U
? U[K]
: T[K];
} & U;
};

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

Expand Down
3 changes: 1 addition & 2 deletions lib/types/response.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
UserCredentials,
AppCredentials,
AuthArtifacts,
MergeType,
AuthCredentials,
ReqRef,
ReqRefDefaults,
Expand Down Expand Up @@ -391,7 +390,7 @@ export interface AuthenticationData<
CredentialsExtra = Record<string, unknown>,
ArtifactsExtra = AuthArtifacts
> {
credentials: MergeType<CredentialsExtra, AuthCredentials<AuthUser, AuthApp>>;
credentials: AuthCredentials<AuthUser, AuthApp> & CredentialsExtra;
artifacts?: ArtifactsExtra | undefined;
}

Expand Down

0 comments on commit 1af8547

Please sign in to comment.