Skip to content

Commit 78ab924

Browse files
committed
try to solve types issues
1 parent 7f7682d commit 78ab924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google-recaptcha-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function GoogleReCaptchaProvider({
8787
const scriptId = scriptProps?.id || 'google-recaptcha-v3';
8888
const onLoadCallbackName = scriptProps?.onLoadCallbackName || 'onRecaptchaLoadCallback';
8989

90-
(window as {[key: string]: any})[onLoadCallbackName] = () => {
90+
((window as unknown) as {[key: string]: () => void})[onLoadCallbackName] = () => {
9191
const grecaptcha = useEnterprise
9292
? (window as any).grecaptcha.enterprise
9393
: (window as any).grecaptcha;

0 commit comments

Comments
 (0)