Skip to content

Commit

Permalink
fix(ts): allow void return type on delete operations
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Aug 16, 2021
1 parent 8914f88 commit 78d8f28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/adapters.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export interface Adapter {
): Awaitable<AdapterUser | null>
updateUser(user: Partial<AdapterUser>): Awaitable<AdapterUser>
/** @todo Implement */
deleteUser?(userId: string): Awaitable<AdapterUser | null | undefined>
deleteUser?(
userId: string
): Promise<void> | Awaitable<AdapterUser | null | undefined>
linkAccount(
account: Account
): Promise<void> | Awaitable<Account | null | undefined>
Expand All @@ -93,7 +95,7 @@ export interface Adapter {
*/
deleteSession(
sessionToken: string
): Awaitable<AdapterSession | null | undefined>
): Promise<void> | Awaitable<AdapterSession | null | undefined>
createVerificationToken?(
verificationToken: VerificationToken
): Awaitable<VerificationToken | null | undefined>
Expand Down

0 comments on commit 78d8f28

Please sign in to comment.