Skip to content

Commit a50cfc8

Browse files
authored
fix(types): Change return type of SetActiveNavigate to allow void or Promise (#6662)
1 parent 61944c2 commit a50cfc8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nice-pans-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/types": patch
3+
---
4+
5+
fix(types): Change return type of SetActiveNavigate to allow void or Promise

packages/types/src/clerk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export type SDKMetadata = {
120120
export type ListenerCallback = (emission: Resources) => void;
121121
export type UnsubscribeCallback = () => void;
122122
export type BeforeEmitCallback = (session?: SignedInSessionResource | null) => void | Promise<any>;
123-
export type SetActiveNavigate = ({ session }: { session: SessionResource }) => Promise<unknown>;
123+
export type SetActiveNavigate = ({ session }: { session: SessionResource }) => void | Promise<unknown>;
124124

125125
export type SignOutCallback = () => void | Promise<any>;
126126

0 commit comments

Comments
 (0)