Skip to content

Commit

Permalink
fix(ts): mark id in updateUser as always defined
Browse files Browse the repository at this point in the history
Closes #7027
  • Loading branch information
balazsorban44 committed Mar 29, 2023
1 parent 2d907f0 commit 319f2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-auth/src/adapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export interface DefaultAdapter {
getUserByAccount: (
providerAccountId: Pick<AdapterAccount, "provider" | "providerAccountId">
) => Awaitable<AdapterUser | null>
updateUser: (user: Partial<AdapterUser>) => Awaitable<AdapterUser>
updateUser: (user: Partial<AdapterUser> & Pick<AdapterUser, 'id'>) => Awaitable<AdapterUser>
/** @todo Implement */
deleteUser?: (
userId: string
Expand Down

1 comment on commit 319f2ce

@vercel
Copy link

@vercel vercel bot commented on 319f2ce Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.