chore: add more type check

This commit is contained in:
Stephen Zhou 2025-01-18 15:02:28 +08:00
parent ac29a18135
commit bbb4e7d416
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export const usePresentUserProfileModal = (variant: Variant = "dialog") => {
)
}
export function useTOTPModalWrapper<T>(
export function useTOTPModalWrapper<T extends { TOTPCode?: string }>(
callback: (input: T) => Promise<any>,
options?: { force?: boolean },
) {