chore: add more type check
This commit is contained in:
parent
ac29a18135
commit
bbb4e7d416
|
|
@ -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 },
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue