mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-29 12:12:59 +08:00
chore: add more type check
This commit is contained in:
@@ -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 },
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user