Skip to content

Commit

Permalink
fix: flexible return types
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Aug 6, 2022
1 parent 21ad0c4 commit ef01244
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-beans-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hydrofoil/shell-auth": patch
---

log-in and log-out method should be allowed to be non-async
4 changes: 2 additions & 2 deletions packages/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export interface AuthState {
}

export interface Effects {
logIn(arg?: { returnTo?: string | NamedNode }): Promise<void>
logOut(): Promise<void>
logIn(arg?: { returnTo?: string | NamedNode }): Promise<void> | void
logOut(): Promise<void> | void
}

type R = typeof reducers
Expand Down

0 comments on commit ef01244

Please sign in to comment.