From a51b2240f1f5193257da238df8eb7f57758fc562 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 10 Apr 2024 14:30:26 +0200 Subject: [PATCH] fix: update type of function used for signout --- src/UserSwitch/UserSwitchWrapper.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/UserSwitch/UserSwitchWrapper.tsx b/src/UserSwitch/UserSwitchWrapper.tsx index ec552fcbd..b64237ab9 100644 --- a/src/UserSwitch/UserSwitchWrapper.tsx +++ b/src/UserSwitch/UserSwitchWrapper.tsx @@ -32,7 +32,12 @@ interface Props { seeProfileText?: string; signedOutTooltipText?: string; signInMenuItemId?: string; - signOut: (memberId: string) => void; + /** + * Async function used to perform the sign out + * @param memberId Id of the user to sign out (current user) + * @returns Promise of void + */ + signOut: (memberId: string) => Promise; signOutMenuItemId?: string; signOutText?: string; // switchMember: (args: { memberId: string; domain: string }) => Promise;